
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.PrintName = "Card Reader"
ENT.Category = "GlorifiedBanking"
ENT.Spawnable = true
ENT.Model = Model("models/sterling/glorifiedpig_cardreader.mdl")

--Set up the network vars
function ENT:SetupDataTables()
	self:NetworkVar("Int", 0, "ScreenID")
	self:NetworkVar("Int", 1, "TransactionAmount")
	self:NetworkVar("Entity", 0, "owning_ent")

	if SERVER then
		self:SetScreenID(1)
		self:SetTransactionAmount(0)
	end
end

--Use entity ownership to get the merchant user
function ENT:GetMerchant()
	return GlorifiedBanking.GetEntOwner(self)
end

--Define all of our possible screens
ENT.Screens = {
	[1] = {}, --Amount entry screen
	[2] = {}, --Payment screen
	[3] = {}, --Present payment device screen
	[4] = {} --Loading screen
}
