cc-pets 1.3.3 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -0
- package/Sources/CCPets/CCPetsAppDelegate.h +22 -0
- package/Sources/CCPets/CCPetsAppDelegate.m +567 -12
- package/Sources/CCPets/CCPetsPhrases.h +52 -0
- package/Sources/CCPets/CCPetsPhrases.m +307 -0
- package/Sources/CCPets/CCPetsPreviews.h +3 -0
- package/Sources/CCPets/CCPetsPreviews.m +60 -0
- package/Sources/CCPets/PetView.h +9 -4
- package/Sources/CCPets/PetView.m +695 -17
- package/Sources/CCPets/main.m +6 -0
- package/package.json +1 -1
package/Sources/CCPets/main.m
CHANGED
|
@@ -59,6 +59,12 @@ int main(int argc, const char *argv[]) {
|
|
|
59
59
|
if (argc > 2 && strcmp(argv[1], "--render-switches") == 0) {
|
|
60
60
|
return RenderMenuSwitches([NSString stringWithUTF8String:argv[2]]);
|
|
61
61
|
}
|
|
62
|
+
// --render-pet <out.png> <sheet.webp> [rowCount]:逐格渲染 PetView 的等价校验基准。
|
|
63
|
+
if (argc > 3 && strcmp(argv[1], "--render-pet") == 0) {
|
|
64
|
+
NSInteger rowCount = argc > 4 ? atoi(argv[4]) : 9;
|
|
65
|
+
return RenderPetSheet([NSString stringWithUTF8String:argv[2]],
|
|
66
|
+
[NSString stringWithUTF8String:argv[3]], rowCount);
|
|
67
|
+
}
|
|
62
68
|
if (argc > 1 && strcmp(argv[1], "--status") == 0) {
|
|
63
69
|
NSDictionary *usage = LatestUsage();
|
|
64
70
|
if (!usage) {
|