|
@@ -196,6 +196,8 @@ String function start_class(model : Element, data : Element, class : String, par
|
|
|
dict_overwrite(data, "current_class", prev_class)
|
|
|
dict_overwrite(data, "current_class_handle", data["classes"][prev_class])
|
|
|
|
|
|
+ log("Created class with identifier: " + cast_v2s(identifier))
|
|
|
+
|
|
|
return identifier!
|
|
|
|
|
|
Element function get_enabled_transitions(model : Element, state : String, data : Element):
|
|
@@ -321,10 +323,12 @@ Void function process_raised_event(model : Element, event : Element, parameter_a
|
|
|
set_add_node(data["classes"][set_pop(classes)]["new_events"], create_tuple(read_attribute(model, event, "event"), parameter_action))
|
|
|
elif (scope == "narrow"):
|
|
|
// Send to the specified class only
|
|
|
- log("Narrowcasting to " + cast_v2s(read_attribute(model, event, "target")))
|
|
|
Element func
|
|
|
func = resolve_function(read_attribute(model, event, "target"), data)
|
|
|
- set_add_node(data["classes"][func(data["current_class_handle"]["attributes"])]["new_events"], create_tuple(read_attribute(model, event, "event"), parameter_action))
|
|
|
+ String dest
|
|
|
+ dest = func(data["current_class_handle"]["attributes"])
|
|
|
+ log("Narrowcasting to " + cast_v2s(dest))
|
|
|
+ set_add_node(data["classes"][dest]["new_events"], create_tuple(read_attribute(model, event, "event"), parameter_action))
|
|
|
else:
|
|
|
// Same as local
|
|
|
log("Unknown scope, assuming local: " + scope)
|