Skip to content

Ticketing Spec

Johnathon Leon Guerrero edited this page Feb 3, 2022 · 2 revisions

Machine that we are basing the system off of: https://www.barcodegiant.com/epson/part-c31c514a8471.htm?aw&adtype=pla&utm_medium=pla&utm_campaign=Shopping-Point-of-Sale&gclid=Cj0KCQiA0eOPBhCGARIsAFIwTs5iXQBpJ0HzSsB344HeXP2FgElQRFqu86Wu9ugazo0aR3ULIVZ2naYaAmKaEALw_wcB&gclsrc=aw.ds

For now, we can use a primitive placeholder but the system must

  1. Print legible tickets when prompted to by the Game Manager (ask Johnathon about specific API details)
  2. Tickets must be grabbable and organizable on the counter top. Don't let them move unless they are grabbed (make the rigidbody kinematic if it is in contact with the counter collider)
  3. Visual indicator (e.g. a point light) whenever a new ticket appears
  4. Add a button to the machine that, when pressed, reprints the last ticket that was printed (to account for user error if they lose a ticket)

Will require prefabs for

  1. Tickets using TextMeshPro for printed text
  2. Ticket printing machine with button and indicator light

How to hook up to game manager

  1. In the game manager script in the method "DrawOrder()" have it instantiate a prefab of your ticket (replace the ticket prefab already in there)
  2. This ticket prefab must have the printable component. The game manager will populate its order number and order string
  3. Done!
Clone this wiki locally