add(FaxComponent): Allows for setting defaults in the component. (#30484)

* add(FaxComponent): Allows for setting defaults in the component.

This wires up the Fax component to allow the default paper and office
paper to be set. The defaults are what they were before, and it's an
optional option. Now Fax machines can be set to print different paper
when using Print File or other cases where the default paper style is
used.

* Requested change to EntProtoId.

* Fix build failure.
This commit is contained in:
CaasGit
2024-08-08 22:54:08 -07:00
committed by GitHub
parent b7ef5ada11
commit c091acd1f5
2 changed files with 28 additions and 24 deletions

View File

@@ -127,6 +127,20 @@ public sealed partial class FaxMachineComponent : Component
/// </summary>
[ViewVariables]
public float PrintingTime = 2.3f;
/// <summary>
/// The prototype ID to use for faxed or copied entities if we can't get one from
/// the paper entity for whatever reason.
/// </summary>
[DataField]
public EntProtoId PrintPaperId = "Paper";
/// <summary>
/// The prototype ID to use for faxed or copied entities if we can't get one from
/// the paper entity for whatever reason of the Office type.
/// </summary>
[DataField]
public EntProtoId PrintOfficePaperId = "PaperOffice";
}
[DataDefinition]