PCKPacker

Inherits: Reference < Object

Category: Core

Brief Description

Methods

Error add_file ( String pck_path, String source_path )
Error flush ( bool verbose )
Error pck_start ( String pck_name, int alignment )

Description

The PCKPacker is used to create packages in application runtime.

var packer = PCKPacker.new()
packer.pck_start("test.pck", 0)
packer.add_file("res://text.txt", "text.txt")
packer.flush(false)

The above PCKPacker creates package test.pck, then adds a file named text.txt in the root of the package.

Method Descriptions

Adds the source_path file to the current PCK package at the pck_path internal path (should start with res://).