Add files using upload-large-folder tool
Browse files- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Animation/Animators.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Animation/Clips.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Fonts/LICENSE.txt +202 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Fonts/LICENSE.txt.meta +4 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Fonts/RobotoCondensed-Bold.ttf.meta +20 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Physics2D Materials/Bouncy.physicsMaterial2D +10 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Physics2D Materials/Bouncy.physicsMaterial2D.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Presets/Pixel Perfect Cameras.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Presets/Texture Importers.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/RoboHero/Animations.meta +10 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/RoboHero/Materials.meta +10 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/RoboHero/Prefabs.meta +10 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Rule Tiles/Scripts/Editor/RuleTileEditor.cs +350 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Editor/PSDPlugin/AssemblyInfo.cs +3 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Editor/PSDPlugin/AssemblyInfo.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Editor/PSDPlugin/PsdFile/Compression/ImageDataFactory.cs +96 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Tests/EditorTests/PlaceholderTests.cs +14 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Tests/EditorTests/PlaceholderTests.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Tests/EditorTests/Unity.2D.Psdimporter.EditorTests.asmdef +25 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Tests/EditorTests/Unity.2D.Psdimporter.EditorTests.asmdef.meta +7 -0
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Animation/Animators.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: a1f747d86c1e64cfa8b95f8d379cc866
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Animation/Clips.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: e0532ddf704c64fc4b3e3a26415e514e
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Fonts/LICENSE.txt
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Fonts/LICENSE.txt.meta
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: b8784b247b090471695b945937cf5a6b
|
| 3 |
+
TextScriptImporter:
|
| 4 |
+
userData:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Fonts/RobotoCondensed-Bold.ttf.meta
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: b20f139c373fa4555a05cdd0036dfa44
|
| 3 |
+
timeCreated: 1475687636
|
| 4 |
+
licenseType: Store
|
| 5 |
+
TrueTypeFontImporter:
|
| 6 |
+
serializedVersion: 4
|
| 7 |
+
fontSize: 16
|
| 8 |
+
forceTextureCase: -2
|
| 9 |
+
characterSpacing: 0
|
| 10 |
+
characterPadding: 1
|
| 11 |
+
includeFontData: 1
|
| 12 |
+
fontNames:
|
| 13 |
+
- Roboto Condensed
|
| 14 |
+
fallbackFontReferences: []
|
| 15 |
+
customCharacters:
|
| 16 |
+
fontRenderingMode: 0
|
| 17 |
+
ascentCalculationMode: 1
|
| 18 |
+
userData:
|
| 19 |
+
assetBundleName:
|
| 20 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Physics2D Materials/Bouncy.physicsMaterial2D
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
%TAG !u! tag:unity3d.com,2011:
|
| 3 |
+
--- !u!62 &6200000
|
| 4 |
+
PhysicsMaterial2D:
|
| 5 |
+
m_ObjectHideFlags: 0
|
| 6 |
+
m_CorrespondingSourceObject: {fileID: 0}
|
| 7 |
+
m_PrefabInternal: {fileID: 0}
|
| 8 |
+
m_Name: Bouncy
|
| 9 |
+
friction: 0.4
|
| 10 |
+
bounciness: 0.75
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Physics2D Materials/Bouncy.physicsMaterial2D.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 552718e596d0e408295d5ae742cc4097
|
| 3 |
+
NativeFormatImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
mainObjectFileID: 6200000
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Presets/Pixel Perfect Cameras.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: cc2fb811f43eb478497d53d76fa4e294
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Presets/Texture Importers.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 110c0194d171d433fbd5794f7afd2032
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/RoboHero/Animations.meta
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 7dd4043e34931b142b971ad25d8e3747
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
timeCreated: 1503839726
|
| 5 |
+
licenseType: Pro
|
| 6 |
+
DefaultImporter:
|
| 7 |
+
externalObjects: {}
|
| 8 |
+
userData:
|
| 9 |
+
assetBundleName:
|
| 10 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/RoboHero/Materials.meta
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 29d5eda56a6200742abc7eff706371ed
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
timeCreated: 1503839726
|
| 5 |
+
licenseType: Pro
|
| 6 |
+
DefaultImporter:
|
| 7 |
+
externalObjects: {}
|
| 8 |
+
userData:
|
| 9 |
+
assetBundleName:
|
| 10 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/RoboHero/Prefabs.meta
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 4f882420f8c38475698eb7da59d91558
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
timeCreated: 1503846850
|
| 5 |
+
licenseType: Pro
|
| 6 |
+
DefaultImporter:
|
| 7 |
+
externalObjects: {}
|
| 8 |
+
userData:
|
| 9 |
+
assetBundleName:
|
| 10 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.pixel-perfect@4.0.1/Samples~/Scenes and Extras/Scenes/Rule Tiles/Scripts/Editor/RuleTileEditor.cs
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
using System.Collections.Generic;
|
| 3 |
+
using System.Reflection;
|
| 4 |
+
using UnityEditor.Sprites;
|
| 5 |
+
using UnityEditorInternal;
|
| 6 |
+
using UnityEngine;
|
| 7 |
+
using UnityEngine.Networking;
|
| 8 |
+
using UnityEngine.Tilemaps;
|
| 9 |
+
using Object = UnityEngine.Object;
|
| 10 |
+
|
| 11 |
+
namespace UnityEditor
|
| 12 |
+
{
|
| 13 |
+
[CustomEditor(typeof(RuleTile))]
|
| 14 |
+
[CanEditMultipleObjects]
|
| 15 |
+
internal class RuleTileEditor : Editor
|
| 16 |
+
{
|
| 17 |
+
private const string s_XIconString = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAABoSURBVDhPnY3BDcAgDAOZhS14dP1O0x2C/LBEgiNSHvfwyZabmV0jZRUpq2zi6f0DJwdcQOEdwwDLypF0zHLMa9+NQRxkQ+ACOT2STVw/q8eY1346ZlE54sYAhVhSDrjwFymrSFnD2gTZpls2OvFUHAAAAABJRU5ErkJggg==";
|
| 18 |
+
private const string s_Arrow0 = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAACYSURBVDhPzZExDoQwDATzE4oU4QXXcgUFj+YxtETwgpMwXuFcwMFSRMVKKwzZcWzhiMg91jtg34XIntkre5EaT7yjjhI9pOD5Mw5k2X/DdUwFr3cQ7Pu23E/BiwXyWSOxrNqx+ewnsayam5OLBtbOGPUM/r93YZL4/dhpR/amwByGFBz170gNChA6w5bQQMqramBTgJ+Z3A58WuWejPCaHQAAAABJRU5ErkJggg==";
|
| 19 |
+
private const string s_Arrow1 = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAABqSURBVDhPxYzBDYAgEATpxYcd+PVr0fZ2siZrjmMhFz6STIiDs8XMlpEyi5RkO/d66TcgJUB43JfNBqRkSEYDnYjhbKD5GIUkDqRDwoH3+NgTAw+bL/aoOP4DOgH+iwECEt+IlFmkzGHlAYKAWF9R8zUnAAAAAElFTkSuQmCC";
|
| 20 |
+
private const string s_Arrow2 = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAAC0SURBVDhPjVE5EsIwDMxPKFKYF9CagoJH8xhaMskLmEGsjOSRkBzYmU2s9a58TUQUmCH1BWEHweuKP+D8tphrWcAHuIGrjPnPNY8X2+DzEWE+FzrdrkNyg2YGNNfRGlyOaZDJOxBrDhgOowaYW8UW0Vau5ZkFmXbbDr+CzOHKmLinAXMEePyZ9dZkZR+s5QX2O8DY3zZ/sgYcdDqeEVp8516o0QQV1qeMwg6C91toYoLoo+kNt/tpKQEVvFQAAAAASUVORK5CYII=";
|
| 21 |
+
private const string s_Arrow3 = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAAB2SURBVDhPzY1LCoAwEEPnLi48gW5d6p31bH5SMhp0Cq0g+CCLxrzRPqMZ2pRqKG4IqzJc7JepTlbRZXYpWTg4RZE1XAso8VHFKNhQuTjKtZvHUNCEMogO4K3BhvMn9wP4EzoPZ3n0AGTW5fiBVzLAAYTP32C2Ay3agtu9V/9PAAAAAElFTkSuQmCC";
|
| 22 |
+
private const string s_Arrow5 = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAABqSURBVDhPnY3BCYBADASvFx924NevRdvbyoLBmNuDJQMDGjNxAFhK1DyUQ9fvobCdO+j7+sOKj/uSB+xYHZAxl7IR1wNTXJeVcaAVU+614uWfCT9mVUhknMlxDokd15BYsQrJFHeUQ0+MB5ErsPi/6hO1AAAAAElFTkSuQmCC";
|
| 23 |
+
private const string s_Arrow6 = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAACaSURBVDhPxZExEkAwEEVzE4UiTqClUDi0w2hlOIEZsV82xCZmQuPPfFn8t1mirLWf7S5flQOXjd64vCuEKWTKVt+6AayH3tIa7yLg6Qh2FcKFB72jBgJeziA1CMHzeaNHjkfwnAK86f3KUafU2ClHIJSzs/8HHLv09M3SaMCxS7ljw/IYJWzQABOQZ66x4h614ahTCL/WT7BSO51b5Z5hSx88AAAAAElFTkSuQmCC";
|
| 24 |
+
private const string s_Arrow7 = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAABQSURBVDhPYxh8QNle/T8U/4MKEQdAmsz2eICx6W530gygr2aQBmSMphkZYxqErAEXxusKfAYQ7XyyNMIAsgEkaYQBkAFkaYQBsjXSGDAwAAD193z4luKPrAAAAABJRU5ErkJggg==";
|
| 25 |
+
private const string s_Arrow8 = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAACYSURBVDhPxZE9DoAwCIW9iUOHegJXHRw8tIdx1egJTMSHAeMPaHSR5KVQ+KCkCRF91mdz4VDEWVzXTBgg5U1N5wahjHzXS3iFFVRxAygNVaZxJ6VHGIl2D6oUXP0ijlJuTp724FnID1Lq7uw2QM5+thoKth0N+GGyA7IA3+yM77Ag1e2zkey5gCdAg/h8csy+/89v7E+YkgUntOWeVt2SfAAAAABJRU5ErkJggg==";
|
| 26 |
+
private const string s_MirrorX = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAAAG1JREFUOE+lj9ENwCAIRB2IFdyRfRiuDSaXAF4MrR9P5eRhHGb2Gxp2oaEjIovTXSrAnPNx6hlgyCZ7o6omOdYOldGIZhAziEmOTSfigLV0RYAB9y9f/7kO8L3WUaQyhCgz0dmCL9CwCw172HgBeyG6oloC8fAAAAAASUVORK5CYII=";
|
| 27 |
+
private const string s_MirrorY = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAAAG9JREFUOE+djckNACEMAykoLdAjHbPyw1IOJ0L7mAejjFlm9hspyd77Kk+kBAjPOXcakJIh6QaKyOE0EB5dSPJAiUmOiL8PMVGxugsP/0OOib8vsY8yYwy6gRyC8CB5QIWgCMKBLgRSkikEUr5h6wOPWfMoCYILdgAAAABJRU5ErkJggg==";
|
| 28 |
+
private const string s_Rotated = "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAAAHdJREFUOE+djssNwCAMQxmIFdgx+2S4Vj4YxWlQgcOT8nuG5u5C732Sd3lfLlmPMR4QhXgrTQaimUlA3EtD+CJlBuQ7aUAUMjEAv9gWCQNEPhHJUkYfZ1kEpcxDzioRzGIlr0Qwi0r+Q5rTgM+AAVcygHgt7+HtBZs/2QVWP8ahAAAAAElFTkSuQmCC";
|
| 29 |
+
|
| 30 |
+
private static Texture2D[] s_Arrows;
|
| 31 |
+
public static Texture2D[] arrows
|
| 32 |
+
{
|
| 33 |
+
get
|
| 34 |
+
{
|
| 35 |
+
if (s_Arrows == null)
|
| 36 |
+
{
|
| 37 |
+
s_Arrows = new Texture2D[10];
|
| 38 |
+
s_Arrows[0] = Base64ToTexture(s_Arrow0);
|
| 39 |
+
s_Arrows[1] = Base64ToTexture(s_Arrow1);
|
| 40 |
+
s_Arrows[2] = Base64ToTexture(s_Arrow2);
|
| 41 |
+
s_Arrows[3] = Base64ToTexture(s_Arrow3);
|
| 42 |
+
s_Arrows[5] = Base64ToTexture(s_Arrow5);
|
| 43 |
+
s_Arrows[6] = Base64ToTexture(s_Arrow6);
|
| 44 |
+
s_Arrows[7] = Base64ToTexture(s_Arrow7);
|
| 45 |
+
s_Arrows[8] = Base64ToTexture(s_Arrow8);
|
| 46 |
+
s_Arrows[9] = Base64ToTexture(s_XIconString);
|
| 47 |
+
}
|
| 48 |
+
return s_Arrows;
|
| 49 |
+
}
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
private static Texture2D[] s_AutoTransforms;
|
| 53 |
+
public static Texture2D[] autoTransforms
|
| 54 |
+
{
|
| 55 |
+
get
|
| 56 |
+
{
|
| 57 |
+
if (s_AutoTransforms == null)
|
| 58 |
+
{
|
| 59 |
+
s_AutoTransforms = new Texture2D[3];
|
| 60 |
+
s_AutoTransforms[0] = Base64ToTexture(s_Rotated);
|
| 61 |
+
s_AutoTransforms[1] = Base64ToTexture(s_MirrorX);
|
| 62 |
+
s_AutoTransforms[2] = Base64ToTexture(s_MirrorY);
|
| 63 |
+
}
|
| 64 |
+
return s_AutoTransforms;
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
private ReorderableList m_ReorderableList;
|
| 69 |
+
public RuleTile tile { get { return (target as RuleTile); } }
|
| 70 |
+
private Rect m_ListRect;
|
| 71 |
+
|
| 72 |
+
const float k_DefaultElementHeight = 48f;
|
| 73 |
+
const float k_PaddingBetweenRules = 13f;
|
| 74 |
+
const float k_SingleLineHeight = 16f;
|
| 75 |
+
const float k_LabelWidth = 53f;
|
| 76 |
+
|
| 77 |
+
public void OnEnable()
|
| 78 |
+
{
|
| 79 |
+
if (tile.m_TilingRules == null)
|
| 80 |
+
tile.m_TilingRules = new List<RuleTile.TilingRule>();
|
| 81 |
+
|
| 82 |
+
m_ReorderableList = new ReorderableList(tile.m_TilingRules, typeof(RuleTile.TilingRule), true, true, true, true);
|
| 83 |
+
m_ReorderableList.drawHeaderCallback = OnDrawHeader;
|
| 84 |
+
m_ReorderableList.drawElementCallback = OnDrawElement;
|
| 85 |
+
m_ReorderableList.elementHeightCallback = GetElementHeight;
|
| 86 |
+
m_ReorderableList.onReorderCallback = ListUpdated;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
private void ListUpdated(ReorderableList list)
|
| 90 |
+
{
|
| 91 |
+
SaveTile();
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
private float GetElementHeight(int index)
|
| 95 |
+
{
|
| 96 |
+
if (tile.m_TilingRules != null && tile.m_TilingRules.Count > 0)
|
| 97 |
+
{
|
| 98 |
+
switch (tile.m_TilingRules[index].m_Output)
|
| 99 |
+
{
|
| 100 |
+
case RuleTile.TilingRule.OutputSprite.Random:
|
| 101 |
+
return k_DefaultElementHeight + k_SingleLineHeight*(tile.m_TilingRules[index].m_Sprites.Length + 3) + k_PaddingBetweenRules;
|
| 102 |
+
case RuleTile.TilingRule.OutputSprite.Animation:
|
| 103 |
+
return k_DefaultElementHeight + k_SingleLineHeight*(tile.m_TilingRules[index].m_Sprites.Length + 2) + k_PaddingBetweenRules;
|
| 104 |
+
}
|
| 105 |
+
}
|
| 106 |
+
return k_DefaultElementHeight + k_PaddingBetweenRules;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
private void OnDrawElement(Rect rect, int index, bool isactive, bool isfocused)
|
| 110 |
+
{
|
| 111 |
+
RuleTile.TilingRule rule = tile.m_TilingRules[index];
|
| 112 |
+
|
| 113 |
+
float yPos = rect.yMin + 2f;
|
| 114 |
+
float height = rect.height - k_PaddingBetweenRules;
|
| 115 |
+
float matrixWidth = k_DefaultElementHeight;
|
| 116 |
+
|
| 117 |
+
Rect inspectorRect = new Rect(rect.xMin, yPos, rect.width - matrixWidth * 2f - 20f, height);
|
| 118 |
+
Rect matrixRect = new Rect(rect.xMax - matrixWidth * 2f - 10f, yPos, matrixWidth, k_DefaultElementHeight);
|
| 119 |
+
Rect spriteRect = new Rect(rect.xMax - matrixWidth - 5f, yPos, matrixWidth, k_DefaultElementHeight);
|
| 120 |
+
|
| 121 |
+
EditorGUI.BeginChangeCheck();
|
| 122 |
+
RuleInspectorOnGUI(inspectorRect, rule);
|
| 123 |
+
RuleMatrixOnGUI(matrixRect, rule);
|
| 124 |
+
SpriteOnGUI(spriteRect, rule);
|
| 125 |
+
if (EditorGUI.EndChangeCheck())
|
| 126 |
+
SaveTile();
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
private void SaveTile()
|
| 130 |
+
{
|
| 131 |
+
EditorUtility.SetDirty(target);
|
| 132 |
+
SceneView.RepaintAll();
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
private void OnDrawHeader(Rect rect)
|
| 136 |
+
{
|
| 137 |
+
GUI.Label(rect, "Tiling Rules");
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
public override void OnInspectorGUI()
|
| 141 |
+
{
|
| 142 |
+
tile.m_DefaultSprite = EditorGUILayout.ObjectField("Default Sprite", tile.m_DefaultSprite, typeof(Sprite), false) as Sprite;
|
| 143 |
+
tile.m_DefaultColliderType = (Tile.ColliderType)EditorGUILayout.EnumPopup("Default Collider", tile.m_DefaultColliderType);
|
| 144 |
+
EditorGUILayout.Space();
|
| 145 |
+
|
| 146 |
+
if (m_ReorderableList != null && tile.m_TilingRules != null)
|
| 147 |
+
m_ReorderableList.DoLayoutList();
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
private static void RuleMatrixOnGUI(Rect rect, RuleTile.TilingRule tilingRule)
|
| 151 |
+
{
|
| 152 |
+
Handles.color = EditorGUIUtility.isProSkin ? new Color(1f, 1f, 1f, 0.2f) : new Color(0f, 0f, 0f, 0.2f);
|
| 153 |
+
int index = 0;
|
| 154 |
+
float w = rect.width / 3f;
|
| 155 |
+
float h = rect.height / 3f;
|
| 156 |
+
|
| 157 |
+
for (int y = 0; y <= 3; y++)
|
| 158 |
+
{
|
| 159 |
+
float top = rect.yMin + y * h;
|
| 160 |
+
Handles.DrawLine(new Vector3(rect.xMin, top), new Vector3(rect.xMax, top));
|
| 161 |
+
}
|
| 162 |
+
for (int x = 0; x <= 3; x++)
|
| 163 |
+
{
|
| 164 |
+
float left = rect.xMin + x * w;
|
| 165 |
+
Handles.DrawLine(new Vector3(left, rect.yMin), new Vector3(left, rect.yMax));
|
| 166 |
+
}
|
| 167 |
+
Handles.color = Color.white;
|
| 168 |
+
|
| 169 |
+
for (int y = 0; y <= 2; y++)
|
| 170 |
+
{
|
| 171 |
+
for (int x = 0; x <= 2; x++)
|
| 172 |
+
{
|
| 173 |
+
Rect r = new Rect(rect.xMin + x * w, rect.yMin + y * h, w - 1, h - 1);
|
| 174 |
+
if (x != 1 || y != 1)
|
| 175 |
+
{
|
| 176 |
+
switch (tilingRule.m_Neighbors[index])
|
| 177 |
+
{
|
| 178 |
+
case RuleTile.TilingRule.Neighbor.This:
|
| 179 |
+
GUI.DrawTexture(r, arrows[y*3 + x]);
|
| 180 |
+
break;
|
| 181 |
+
case RuleTile.TilingRule.Neighbor.NotThis:
|
| 182 |
+
GUI.DrawTexture(r, arrows[9]);
|
| 183 |
+
break;
|
| 184 |
+
}
|
| 185 |
+
if (Event.current.type == EventType.MouseDown && r.Contains(Event.current.mousePosition))
|
| 186 |
+
{
|
| 187 |
+
tilingRule.m_Neighbors[index] = (RuleTile.TilingRule.Neighbor) (((int)tilingRule.m_Neighbors[index] + 1) % 3);
|
| 188 |
+
GUI.changed = true;
|
| 189 |
+
Event.current.Use();
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
index++;
|
| 193 |
+
}
|
| 194 |
+
else
|
| 195 |
+
{
|
| 196 |
+
switch (tilingRule.m_RuleTransform)
|
| 197 |
+
{
|
| 198 |
+
case RuleTile.TilingRule.Transform.Rotated:
|
| 199 |
+
GUI.DrawTexture(r, autoTransforms[0]);
|
| 200 |
+
break;
|
| 201 |
+
case RuleTile.TilingRule.Transform.MirrorX:
|
| 202 |
+
GUI.DrawTexture(r, autoTransforms[1]);
|
| 203 |
+
break;
|
| 204 |
+
case RuleTile.TilingRule.Transform.MirrorY:
|
| 205 |
+
GUI.DrawTexture(r, autoTransforms[2]);
|
| 206 |
+
break;
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
if (Event.current.type == EventType.MouseDown && r.Contains(Event.current.mousePosition))
|
| 210 |
+
{
|
| 211 |
+
tilingRule.m_RuleTransform = (RuleTile.TilingRule.Transform)(((int)tilingRule.m_RuleTransform + 1) % 4);
|
| 212 |
+
GUI.changed = true;
|
| 213 |
+
Event.current.Use();
|
| 214 |
+
}
|
| 215 |
+
}
|
| 216 |
+
}
|
| 217 |
+
}
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
private static void OnSelect(object userdata)
|
| 221 |
+
{
|
| 222 |
+
MenuItemData data = (MenuItemData) userdata;
|
| 223 |
+
data.m_Rule.m_RuleTransform = data.m_NewValue;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
private class MenuItemData
|
| 227 |
+
{
|
| 228 |
+
public RuleTile.TilingRule m_Rule;
|
| 229 |
+
public RuleTile.TilingRule.Transform m_NewValue;
|
| 230 |
+
|
| 231 |
+
public MenuItemData(RuleTile.TilingRule mRule, RuleTile.TilingRule.Transform mNewValue)
|
| 232 |
+
{
|
| 233 |
+
this.m_Rule = mRule;
|
| 234 |
+
this.m_NewValue = mNewValue;
|
| 235 |
+
}
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
private void SpriteOnGUI(Rect rect, RuleTile.TilingRule tilingRule)
|
| 239 |
+
{
|
| 240 |
+
tilingRule.m_Sprites[0] = EditorGUI.ObjectField(new Rect(rect.xMax - rect.height, rect.yMin, rect.height, rect.height), tilingRule.m_Sprites[0], typeof (Sprite), false) as Sprite;
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
+
private static void RuleInspectorOnGUI(Rect rect, RuleTile.TilingRule tilingRule)
|
| 244 |
+
{
|
| 245 |
+
float y = rect.yMin;
|
| 246 |
+
EditorGUI.BeginChangeCheck();
|
| 247 |
+
GUI.Label(new Rect(rect.xMin, y, k_LabelWidth, k_SingleLineHeight), "Rule");
|
| 248 |
+
tilingRule.m_RuleTransform = (RuleTile.TilingRule.Transform)EditorGUI.EnumPopup(new Rect(rect.xMin + k_LabelWidth, y, rect.width - k_LabelWidth, k_SingleLineHeight), tilingRule.m_RuleTransform);
|
| 249 |
+
y += k_SingleLineHeight;
|
| 250 |
+
GUI.Label(new Rect(rect.xMin, y, k_LabelWidth, k_SingleLineHeight), "Collider");
|
| 251 |
+
tilingRule.m_ColliderType = (Tile.ColliderType)EditorGUI.EnumPopup(new Rect(rect.xMin + k_LabelWidth, y, rect.width - k_LabelWidth, k_SingleLineHeight), tilingRule.m_ColliderType);
|
| 252 |
+
y += k_SingleLineHeight;
|
| 253 |
+
GUI.Label(new Rect(rect.xMin, y, k_LabelWidth, k_SingleLineHeight), "Output");
|
| 254 |
+
tilingRule.m_Output = (RuleTile.TilingRule.OutputSprite)EditorGUI.EnumPopup(new Rect(rect.xMin + k_LabelWidth, y, rect.width - k_LabelWidth, k_SingleLineHeight), tilingRule.m_Output);
|
| 255 |
+
y += k_SingleLineHeight;
|
| 256 |
+
|
| 257 |
+
if (tilingRule.m_Output == RuleTile.TilingRule.OutputSprite.Animation)
|
| 258 |
+
{
|
| 259 |
+
GUI.Label(new Rect(rect.xMin, y, k_LabelWidth, k_SingleLineHeight), "Speed");
|
| 260 |
+
tilingRule.m_AnimationSpeed = EditorGUI.FloatField(new Rect(rect.xMin + k_LabelWidth, y, rect.width - k_LabelWidth, k_SingleLineHeight), tilingRule.m_AnimationSpeed);
|
| 261 |
+
y += k_SingleLineHeight;
|
| 262 |
+
}
|
| 263 |
+
if (tilingRule.m_Output == RuleTile.TilingRule.OutputSprite.Random)
|
| 264 |
+
{
|
| 265 |
+
GUI.Label(new Rect(rect.xMin, y, k_LabelWidth, k_SingleLineHeight), "Noise");
|
| 266 |
+
tilingRule.m_PerlinScale = EditorGUI.Slider(new Rect(rect.xMin + k_LabelWidth, y, rect.width - k_LabelWidth, k_SingleLineHeight), tilingRule.m_PerlinScale, 0.001f, 0.999f);
|
| 267 |
+
y += k_SingleLineHeight;
|
| 268 |
+
|
| 269 |
+
GUI.Label(new Rect(rect.xMin, y, k_LabelWidth, k_SingleLineHeight), "Shuffle");
|
| 270 |
+
tilingRule.m_RandomTransform = (RuleTile.TilingRule.Transform)EditorGUI.EnumPopup(new Rect(rect.xMin + k_LabelWidth, y, rect.width - k_LabelWidth, k_SingleLineHeight), tilingRule.m_RandomTransform);
|
| 271 |
+
y += k_SingleLineHeight;
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
if (tilingRule.m_Output != RuleTile.TilingRule.OutputSprite.Single)
|
| 275 |
+
{
|
| 276 |
+
GUI.Label(new Rect(rect.xMin, y, k_LabelWidth, k_SingleLineHeight), "Size");
|
| 277 |
+
EditorGUI.BeginChangeCheck();
|
| 278 |
+
int newLength = EditorGUI.IntField(new Rect(rect.xMin + k_LabelWidth, y, rect.width - k_LabelWidth, k_SingleLineHeight), tilingRule.m_Sprites.Length);
|
| 279 |
+
if (EditorGUI.EndChangeCheck())
|
| 280 |
+
Array.Resize(ref tilingRule.m_Sprites, Math.Max(newLength, 1));
|
| 281 |
+
y += k_SingleLineHeight;
|
| 282 |
+
|
| 283 |
+
for (int i = 0; i < tilingRule.m_Sprites.Length; i++)
|
| 284 |
+
{
|
| 285 |
+
tilingRule.m_Sprites[i] = EditorGUI.ObjectField(new Rect(rect.xMin + k_LabelWidth, y, rect.width - k_LabelWidth, k_SingleLineHeight), tilingRule.m_Sprites[i], typeof(Sprite), false) as Sprite;
|
| 286 |
+
y += k_SingleLineHeight;
|
| 287 |
+
}
|
| 288 |
+
}
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
public override Texture2D RenderStaticPreview(string assetPath, Object[] subAssets, int width, int height)
|
| 292 |
+
{
|
| 293 |
+
if (tile.m_DefaultSprite != null)
|
| 294 |
+
{
|
| 295 |
+
Type t = GetType("UnityEditor.SpriteUtility");
|
| 296 |
+
if (t != null)
|
| 297 |
+
{
|
| 298 |
+
MethodInfo method = t.GetMethod("RenderStaticPreview", new Type[] {typeof (Sprite), typeof (Color), typeof (int), typeof (int)});
|
| 299 |
+
if (method != null)
|
| 300 |
+
{
|
| 301 |
+
object ret = method.Invoke("RenderStaticPreview", new object[] {tile.m_DefaultSprite, Color.white, width, height});
|
| 302 |
+
if (ret is Texture2D)
|
| 303 |
+
return ret as Texture2D;
|
| 304 |
+
}
|
| 305 |
+
}
|
| 306 |
+
}
|
| 307 |
+
return base.RenderStaticPreview(assetPath, subAssets, width, height);
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
private static Type GetType(string TypeName)
|
| 311 |
+
{
|
| 312 |
+
var type = Type.GetType(TypeName);
|
| 313 |
+
if (type != null)
|
| 314 |
+
return type;
|
| 315 |
+
|
| 316 |
+
if (TypeName.Contains("."))
|
| 317 |
+
{
|
| 318 |
+
var assemblyName = TypeName.Substring(0, TypeName.IndexOf('.'));
|
| 319 |
+
var assembly = Assembly.Load(assemblyName);
|
| 320 |
+
if (assembly == null)
|
| 321 |
+
return null;
|
| 322 |
+
type = assembly.GetType(TypeName);
|
| 323 |
+
if (type != null)
|
| 324 |
+
return type;
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
var currentAssembly = Assembly.GetExecutingAssembly();
|
| 328 |
+
var referencedAssemblies = currentAssembly.GetReferencedAssemblies();
|
| 329 |
+
foreach (var assemblyName in referencedAssemblies)
|
| 330 |
+
{
|
| 331 |
+
var assembly = Assembly.Load(assemblyName);
|
| 332 |
+
if (assembly != null)
|
| 333 |
+
{
|
| 334 |
+
type = assembly.GetType(TypeName);
|
| 335 |
+
if (type != null)
|
| 336 |
+
return type;
|
| 337 |
+
}
|
| 338 |
+
}
|
| 339 |
+
return null;
|
| 340 |
+
}
|
| 341 |
+
|
| 342 |
+
private static Texture2D Base64ToTexture(string base64)
|
| 343 |
+
{
|
| 344 |
+
Texture2D t = new Texture2D(1, 1);
|
| 345 |
+
t.hideFlags = HideFlags.HideAndDontSave;
|
| 346 |
+
t.LoadImage(System.Convert.FromBase64String(base64));
|
| 347 |
+
return t;
|
| 348 |
+
}
|
| 349 |
+
}
|
| 350 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Editor/PSDPlugin/AssemblyInfo.cs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System.Runtime.CompilerServices;
|
| 2 |
+
|
| 3 |
+
[assembly: InternalsVisibleTo("Unity.2D.PsdImporter.Editor")]
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Editor/PSDPlugin/AssemblyInfo.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 86edfd93afbfbfd4a9dd8afefbb6ba14
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Editor/PSDPlugin/PsdFile/Compression/ImageDataFactory.cs
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/////////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// Photoshop PSD FileType Plugin for Paint.NET
|
| 4 |
+
// http://psdplugin.codeplex.com/
|
| 5 |
+
//
|
| 6 |
+
// This software is provided under the MIT License:
|
| 7 |
+
// Copyright (c) 2006-2007 Frank Blumenberg
|
| 8 |
+
// Copyright (c) 2010-2016 Tao Yue
|
| 9 |
+
//
|
| 10 |
+
// See LICENSE.txt for complete licensing and attribution information.
|
| 11 |
+
//
|
| 12 |
+
/////////////////////////////////////////////////////////////////////////////////
|
| 13 |
+
|
| 14 |
+
using System;
|
| 15 |
+
using System.IO.Compression;
|
| 16 |
+
using PDNWrapper;
|
| 17 |
+
|
| 18 |
+
namespace PhotoshopFile.Compression
|
| 19 |
+
{
|
| 20 |
+
internal static class ImageDataFactory
|
| 21 |
+
{
|
| 22 |
+
/// <summary>
|
| 23 |
+
/// Creates an ImageData object to compress or decompress image data.
|
| 24 |
+
/// </summary>
|
| 25 |
+
/// <param name="channel">The Channel associated with the image data.</param>
|
| 26 |
+
/// <param name="data">The image data to be decompressed, or null if
|
| 27 |
+
/// image data is to be compressed.</param>
|
| 28 |
+
public static ImageData Create(Channel channel, byte[] data)
|
| 29 |
+
{
|
| 30 |
+
var bitDepth = channel.Layer.PsdFile.BitDepth;
|
| 31 |
+
ImageData imageData;
|
| 32 |
+
switch (channel.ImageCompression)
|
| 33 |
+
{
|
| 34 |
+
case ImageCompression.Raw:
|
| 35 |
+
imageData = new RawImage(data, channel.Rect.Size, bitDepth);
|
| 36 |
+
break;
|
| 37 |
+
|
| 38 |
+
case ImageCompression.Rle:
|
| 39 |
+
imageData = new RleImage(data, channel.RleRowLengths,
|
| 40 |
+
channel.Rect.Size, bitDepth);
|
| 41 |
+
break;
|
| 42 |
+
|
| 43 |
+
case ImageCompression.Zip:
|
| 44 |
+
// Photoshop treats 32-bit Zip as 32-bit ZipPrediction
|
| 45 |
+
imageData = (bitDepth == 32)
|
| 46 |
+
? CreateZipPredict(data, channel.Rect.Size, bitDepth)
|
| 47 |
+
: new ZipImage(data, channel.Rect.Size, bitDepth);
|
| 48 |
+
break;
|
| 49 |
+
|
| 50 |
+
case ImageCompression.ZipPrediction:
|
| 51 |
+
imageData = CreateZipPredict(data, channel.Rect.Size, bitDepth);
|
| 52 |
+
break;
|
| 53 |
+
|
| 54 |
+
default:
|
| 55 |
+
throw new PsdInvalidException("Unknown image compression method.");
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
// Reverse endianness of multi-byte image data
|
| 59 |
+
imageData = WrapEndianness(imageData);
|
| 60 |
+
|
| 61 |
+
return imageData;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
private static ImageData CreateZipPredict(byte[] data, Size size,
|
| 65 |
+
int bitDepth)
|
| 66 |
+
{
|
| 67 |
+
switch (bitDepth)
|
| 68 |
+
{
|
| 69 |
+
case 16:
|
| 70 |
+
return new ZipPredict16Image(data, size);
|
| 71 |
+
case 32:
|
| 72 |
+
return new ZipPredict32Image(data, size);
|
| 73 |
+
default:
|
| 74 |
+
throw new PsdInvalidException(
|
| 75 |
+
"ZIP with prediction is only available for 16 and 32 bit depths.");
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
private static ImageData WrapEndianness(ImageData imageData)
|
| 80 |
+
{
|
| 81 |
+
// Single-byte image does not require endianness reversal
|
| 82 |
+
if (imageData.BitDepth <= 8)
|
| 83 |
+
{
|
| 84 |
+
return imageData;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
// Bytes will be reordered by the compressor, so no wrapper is needed
|
| 88 |
+
if ((imageData is ZipPredict16Image) || (imageData is ZipPredict32Image))
|
| 89 |
+
{
|
| 90 |
+
return imageData;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
return new EndianReverser(imageData);
|
| 94 |
+
}
|
| 95 |
+
}
|
| 96 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Tests/EditorTests/PlaceholderTests.cs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using NUnit.Framework;
|
| 2 |
+
|
| 3 |
+
namespace UnityEditor.Experimental.U2D.PSDImporter.Tests
|
| 4 |
+
{
|
| 5 |
+
internal class Placeholder
|
| 6 |
+
{
|
| 7 |
+
[Test]
|
| 8 |
+
public void PlaceHolderTest()
|
| 9 |
+
{
|
| 10 |
+
// Use the Assert class to test conditions.
|
| 11 |
+
Assert.Pass("This is a placeholder to ensure we have at least one test.");
|
| 12 |
+
}
|
| 13 |
+
}
|
| 14 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Tests/EditorTests/PlaceholderTests.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: e02c5dbafeee6ae488b1efd88793f456
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Tests/EditorTests/Unity.2D.Psdimporter.EditorTests.asmdef
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "Unity.2D.Psdimporter.EditorTests",
|
| 3 |
+
"references": [
|
| 4 |
+
"Unity.2D.Common.Editor",
|
| 5 |
+
"Unity.2D.Psdimporter.Editor",
|
| 6 |
+
"Unity.2D.Animation.Editor",
|
| 7 |
+
"Unity.2D.Animation.Runtime",
|
| 8 |
+
"Unity.2D.Sprite.Editor"
|
| 9 |
+
],
|
| 10 |
+
"optionalUnityReferences": [
|
| 11 |
+
"TestAssemblies"
|
| 12 |
+
],
|
| 13 |
+
"includePlatforms": [
|
| 14 |
+
"Editor"
|
| 15 |
+
],
|
| 16 |
+
"excludePlatforms": [],
|
| 17 |
+
"allowUnsafeCode": false,
|
| 18 |
+
"overrideReferences": false,
|
| 19 |
+
"precompiledReferences": [],
|
| 20 |
+
"autoReferenced": true,
|
| 21 |
+
"defineConstraints": [
|
| 22 |
+
"UNITY_INCLUDE_TESTS"
|
| 23 |
+
],
|
| 24 |
+
"versionDefines": []
|
| 25 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.psdimporter@4.0.2/Tests/EditorTests/Unity.2D.Psdimporter.EditorTests.asmdef.meta
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 782c623a3cbd6d940be3a3bcf0d4604b
|
| 3 |
+
AssemblyDefinitionImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
userData:
|
| 6 |
+
assetBundleName:
|
| 7 |
+
assetBundleVariant:
|