Called during cook to allow objects to generate additional cooked files alongside their cooked package. Files written using the provided function will be handled as part of the saved cooked package and contribute to package total file size, and package hash when enabled.