From 6c68a569b991f93efa1945a347dd2158b1e03365 Mon Sep 17 00:00:00 2001 From: 72haja Date: Wed, 22 Apr 2020 18:14:27 +0200 Subject: [PATCH] Change struct Unit to enum Unit --- GoldWars/GoldWars/Unit/Unit.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GoldWars/GoldWars/Unit/Unit.swift b/GoldWars/GoldWars/Unit/Unit.swift index f01eba3..a4fa851 100644 --- a/GoldWars/GoldWars/Unit/Unit.swift +++ b/GoldWars/GoldWars/Unit/Unit.swift @@ -6,8 +6,8 @@ // Copyright © 2020 SP2. All rights reserved. // -struct Unit{ - var strength: Float - var health: Float - var defence: Float +enum Unit{ + case General + case Defence + case Attack }