feat(pbs): add sprite animation and shared Studio authoring
Implement DEC-0084 with factory-only Sprite/Animator structs, complete result lowering, validated animation sidecars, generated PBS factories and JavaFX/MCP authoring through shared services. Qualify native dev/release with ordinary and optimized producers, zero-allocation playback, private-cycle reclamation, canonical Composer pixels, installed JARs and JavaFX lifecycle. Preserve the runtime checkout and existing host ABI.
This commit is contained in:
@@ -3,6 +3,14 @@ package p.packer;
|
||||
import p.packer.messages.*;
|
||||
|
||||
public interface PackerWorkspaceService {
|
||||
default p.packer.dtos.PackerGlyphBankLayoutDTO getGlyphBankLayout(GetGlyphBankLayoutRequest request) {
|
||||
throw new UnsupportedOperationException("Glyph bank layout resolver is not configured");
|
||||
}
|
||||
|
||||
default <T> T withGlyphBankLayout(GetGlyphBankLayoutRequest request, java.util.function.Function<p.packer.dtos.PackerGlyphBankLayoutDTO,T> work) {
|
||||
throw new UnsupportedOperationException("Project-exclusive layout access is not configured");
|
||||
}
|
||||
|
||||
InitWorkspaceResult initWorkspace(InitWorkspaceRequest request);
|
||||
|
||||
ListAssetsResult listAssets(ListAssetsRequest request);
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package p.packer.dtos;
|
||||
import java.nio.file.Path;
|
||||
import java.util.*;
|
||||
/** Immutable effective composition and pixels from the same packing helpers. */
|
||||
public record PackerGlyphBankLayoutDTO(UUID assetUuid, String revision, Path assetRoot,
|
||||
List<Glyph> glyphs, byte[] rgbaPalettes) {
|
||||
public PackerGlyphBankLayoutDTO { glyphs=List.copyOf(glyphs);rgbaPalettes=rgbaPalettes.clone(); }
|
||||
@Override public byte[] rgbaPalettes(){return rgbaPalettes.clone();}
|
||||
public record Glyph(String artifactId,int glyphId,String fingerprint,Path imagePath,int width,int height,byte[] indices) {
|
||||
public Glyph { indices=indices.clone(); }
|
||||
@Override public byte[] indices(){return indices.clone();}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package p.packer.messages;
|
||||
import java.util.UUID;
|
||||
import java.util.Objects;
|
||||
public record GetGlyphBankLayoutRequest(PackerProjectContext project, UUID assetUuid) {
|
||||
public GetGlyphBankLayoutRequest { Objects.requireNonNull(project); Objects.requireNonNull(assetUuid); }
|
||||
}
|
||||
Reference in New Issue
Block a user