pdapainter
Basic machine used to paint PDAs and re-trim ID cards.
Vars | |
card_trims | A list of the card trims that this machine can currently imprint onto a card. |
---|---|
pda_type_blacklist | A blacklist of PDA types that we should not be able to paint. |
pda_types | A list of the PDA types that this machine can currently paint. |
stored_id_card | Current ID card inserted into the machine. |
stored_pda | Current PDA inserted into the machine. |
target_dept | Set to a region define (REGION_SECURITY for example) to create a departmental variant, limited to departmental options. If null, this is unrestricted. |
Procs | |
eject_id_card | Eject the stored ID card into the user's hands if possible, otherwise on the floor. |
eject_pda | Eject the stored PDA into the user's hands if possible, otherwise on the floor. |
insert_id_card | Insert an ID card into the machine. |
insert_pda | Insert a PDA into the machine. |
Var Details
card_trims
A list of the card trims that this machine can currently imprint onto a card.
pda_type_blacklist
A blacklist of PDA types that we should not be able to paint.
pda_types
A list of the PDA types that this machine can currently paint.
stored_id_card
Current ID card inserted into the machine.
stored_pda
Current PDA inserted into the machine.
target_dept
Set to a region define (REGION_SECURITY for example) to create a departmental variant, limited to departmental options. If null, this is unrestricted.
Proc Details
eject_id_card
Eject the stored ID card into the user's hands if possible, otherwise on the floor.
Arguments:
- user - The user to try and eject the ID card into the hands of.
eject_pda
Eject the stored PDA into the user's hands if possible, otherwise on the floor.
Arguments:
- user - The user to try and eject the PDA into the hands of.
insert_id_card
Insert an ID card into the machine.
Will swap ID cards if one is already inside. Attempts to put the card into the user's hands if possible. Returns TRUE on success, FALSE otherwise. Arguments:
- new_id_card - The ID card to insert.
- user - The user to try and eject the PDA into the hands of.
insert_pda
Insert a PDA into the machine.
Will swap PDAs if one is already inside. Attempts to put the PDA into the user's hands if possible. Returns TRUE on success, FALSE otherwise. Arguments:
- new_pda - The PDA to insert.
- user - The user to try and eject the PDA into the hands of.