summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/map-editor/src/Update/SetToolboxTemplate.elm')
-rw-r--r-- | src/map-editor/src/Update/SetToolboxTemplate.elm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map-editor/src/Update/SetToolboxTemplate.elm b/src/map-editor/src/Update/SetToolboxTemplate.elm index cb7b783..4a0593d 100644 --- a/src/map-editor/src/Update/SetToolboxTemplate.elm +++ b/src/map-editor/src/Update/SetToolboxTemplate.elm @@ -16,11 +16,11 @@ import Struct.Model -------------------------------------------------------------------------------- apply_to : ( Struct.Model.Type -> - Int -> - Int -> + String -> + String -> (Struct.Model.Type, (Cmd Struct.Event.Type)) ) -apply_to model main_class variant_ix = +apply_to model main_class_id variant_id = ( {model | toolbox = @@ -29,10 +29,10 @@ apply_to model main_class variant_ix = model.tiles (Struct.Tile.new_instance {x = 0, y = 0} - main_class - variant_ix - 0 + main_class_id + variant_id 0 + "0" [] ) ) |