Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
folium-app
GitHub Repository: folium-app/Folium
Path: blob/a-new-beginning/Folium-iOS/Classes/SkinManager/Skin/Thumbstick.swift
2 views
//
//  Thumbstick.swift
//  Folium-iOS
//
//  Created by Jarrod Norwell on 13/6/2024.
//

import Foundation

struct Thumbstick : Codable, Hashable {
    enum `Type` : String, Codable, Hashable {
        case left = "left"
        case right = "right"
    }
    
    var alpha: Double? = 1
    var backgroundImageName: String? = nil
    let x, y: Double
    let width, height: Double
    var thumbstickClassName: String? = "defaultThumbstick"
    let type: `Type`
}