class Fluorite::SpriteSheet::Core::AtlasPlan

Overview

Complete computed layout plan and atlas manifest for a sprite sheet

Included Modules

Defined in:

fluorite/sprite_sheet/core/pipeline.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(input_path : String, output_path : String, animation_name : String, loop_animation : Bool, format : String, frame_width : Int32, frame_height : Int32, frame_count : Int32, columns : Int32, rows : Int32, padding : Int32, margin : Int32, raw_atlas_width : Int32, raw_atlas_height : Int32, atlas_width : Int32, atlas_height : Int32, power_of_two : Bool, fps : Float64, max_colors : Int32, dither : String, scale_flags : String, metrics : CompressionMetrics, frames : Array(SpriteFrameRect)) #

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Instance Method Detail

def animation_name : String #

def atlas_height : Int32 #

def atlas_width : Int32 #

def columns : Int32 #

def dither : String #

def format : String #

def fps : Float64 #

def frame_count : Int32 #

def frame_height : Int32 #

def frame_width : Int32 #

def frames : Array(SpriteFrameRect) #

def input_path : String #

def loop_animation : Bool #

def margin : Int32 #

def max_colors : Int32 #

def metrics : CompressionMetrics #

def output_path : String #

def padding : Int32 #

def power_of_two : Bool #

def raw_atlas_height : Int32 #

def raw_atlas_width : Int32 #

def rows : Int32 #

def scale_flags : String #

def to_godot_import(source_res_path : String | Nil = nil) : String #

Generates deterministic Godot 4.8 .import metadata for compressed 2D SpriteSheets