Skip to content

Commit

Permalink
Update Unitcreator.wurst
Browse files Browse the repository at this point in the history
  • Loading branch information
Frotty committed Nov 3, 2019
1 parent 6eee50f commit cd0d8bf
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions wurst/objects/circles/Unitcreator.wurst
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,8 @@ public class UnitCreator extends StaticBaseObject
override function serialize() returns Json
let json = super.serialize()
json..addProperty(new Property(KEY_TYPE, UNITCREATOR_INDEX.toString()))
..addProperty(new Property(KEY_RTYPE, (tmode castTo int).toString()))
..addProperty(new Property(KEY_SPAWN, (spawnUnitType).toRawCode()))
..addProperty(new Property(KEY_INTERVAL, (interval).toString()))
return json

override function deserialize(Json json)
super.deserialize(json)
tmode = json.getInt(KEY_RTYPE) castTo TimerMode
spawnUnitType = json.getString(KEY_SPAWN).getSingle().fromRawCode()
interval = json.getReal(KEY_INTERVAL)

ondestroy
destroy delays

Expand Down

0 comments on commit cd0d8bf

Please sign in to comment.