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.
|
// Copyright © 2020 SP2. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
struct Unit{
|
enum Unit{
|
||||||
var strength: Float
|
case General
|
||||||
var health: Float
|
case Defence
|
||||||
var defence: Float
|
case Attack
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user