class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCounted PCKPacker
Creates packages that can be loaded into a running project.

The PCKPacker is used to create packages that can be loaded into a running project using ProjectSettings.load_resource_pack().

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

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

Error add_file<>( String target_path=, target_path:String=, String source_path=, source_path:String=, bool encrypt=false, encrypt:bool=false, ):Error

Adds the source_path file to the current PCK package at the target_path internal path. The res:// prefix for target_path is optional and stripped internally.

Error add_file_removal<>( String target_path=, target_path:String=, ):Error

Registers a file removal of the target_path internal path to the PCK. This is mainly used for patches. If the file at this path has been loaded from a previous PCK, it will be removed. The res:// prefix for target_path is optional and stripped internally.

Error flush<>( bool verbose=false, verbose:bool=false, ):Error

Writes the files specified using all add_file() calls since the last flush. If verbose is true, a list of files added will be printed to the console for easier debugging.

Error pck_start<>( String pck_path=, pck_path:String=, int alignment=32, alignment:int=32, String key="0000000000000000000000000000000000000000000000000000000000000000", key:String="0000000000000000000000000000000000000000000000000000000000000000", bool encrypt_directory=false, encrypt_directory:bool=false, ):Error

Creates a new PCK file at the file path pck_path. The .pck file extension isn't added automatically, so it should be part of pck_path (even though it's not required).




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...