GBA001/Delta/Pause Menu/PauseItem.swift
Riley Testut b8b46f00a6 Refactors PauseViewController in preparation for pushing new view controllers
# PauseViewController has been renamed to PauseMenuViewController.
# A new PauseViewController maintains a child UINavigationController, which has PauseMenuViewController as the root view controller.
2016-01-30 18:19:02 -08:00

30 lines
573 B
Swift

//
// PauseItem.swift
// Delta
//
// Created by Riley Testut on 1/30/16.
// Copyright © 2016 Riley Testut. All rights reserved.
//
import UIKit
struct PauseItem: Equatable
{
let image: UIImage
let text: String
let action: (PauseItem -> Void)
var selected = false
init(image: UIImage, text: String, action: (PauseItem -> Void))
{
self.image = image
self.text = text
self.action = action
}
}
func ==(lhs: PauseItem, rhs: PauseItem) -> Bool
{
return (lhs.image == rhs.image) && (lhs.text == rhs.text)
}