zinc-j

Provides Zinc syntax and SwiftUI-friendly Swift code generation for iOS apps.

11|3|Updated Oct 17, 2024
One-click install
npx skills add https://github.com/Crainax/War3Lib --skill zinc-j
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: zinc-j
Source: https://github.com/Crainax/War3Lib/tree/main/.codex/skills/zinc-j
Command: npx skills add https://github.com/Crainax/War3Lib --skill zinc-j

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides Zinc syntax guidelines and JASS-to-Zinc migration notes for projects using .j files, covering library/struct usage, anonymous function practices, callback parameter handling, resource release, and migration points.

Core Features & Use Cases

  • Zinc block conventions using //! zinc and //! endzinc for code clarity and consistency.
  • Best practices for library and struct declarations, anonymous function handling, and callback parameter patterns.
  • Use case: migrate an existing JASS codebase to Zinc with consistent style, improving maintainability and safety.

Quick Start

Write a Zinc version of a simple JASS snippet following the Zinc syntax and lifecycle guidelines.

Frequently Asked Questions about zinc-j

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate JASS scripts to Zinc in Warcraft III .j files?

To migrate JASS scripts to Zinc, wrap your code in //! zinc and //! endzinc blocks while applying Zinc syntax rules for structs, libraries, and anonymous functions to ensure consistent style and improved code safety.

What are the best practices for handling anonymous functions and callbacks in Zinc?

Best practices for anonymous functions in Zinc involve specific callback parameter handling patterns and proper resource release within the lifecycle. This approach maintains code clarity and prevents memory leaks during JASS-to-Zinc migration.

When do I need to use //! zinc and //! endzinc block conventions?

You need to use //! zinc and //! endzinc block conventions when defining libraries and structs in Warcraft III scripts. These block markers provide code clarity and consistency for the compiler when processing .j files.

Does Zinc support JASS library and struct declarations natively?

Zinc supports library and struct declarations natively, offering specific syntax guidelines for migrating existing JASS codebases. This allows developers to organize code efficiently while maintaining lifecycle management patterns.

What is the correct way to handle resource release in Zinc syntax?

Correct resource release in Zinc syntax requires following specific lifecycle management patterns and best practices during code migration. This ensures safe execution and proper cleanup of handles and variables within your .j files.