Change struct Unit to enum Unit
This commit is contained in:
parent
fdbce8e56d
commit
6c68a569b9
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user