-
-
Notifications
You must be signed in to change notification settings - Fork 34
Add <proc.context_map> tag #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
else if (attribute.startsWith("context_map", 2)) { | ||
mappedDefinitions = attribute.contextAsType(2, MapTag.class); | ||
attribute.fulfill(1); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
src/main/java/com/denizenscript/denizencore/tags/core/ProcedureScriptTagBase.java
Show resolved
Hide resolved
} | ||
q.procedural = true; | ||
}, new DurationTag(0), null, definitions, script.getContainer()); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stray newlines
if (queue == null) { | ||
attribute.echoError("Procedure queue start failed."); | ||
return null; | ||
} | ||
attribute.fulfill(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's valid to leave this here.
Test <proc[x].some_other_tag>
and <proc[x].context_map[y].some_other_tag>
(fill in any valid followup tag) to make sure attribs are all handled properly
attribute.echoError("Procedure call did not determine any value."); | ||
return null; | ||
} | ||
return CoreUtilities.autoAttribTyped(queue.determinations.getObject(0), attribute); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is definitely not right, see above re testing subtags
fixed!! |
Additions
<proc[<script>].context_map[<map>]>
to allow passing definitions in map formatChanges
Related convo: https://discord.com/channels/315163488085475337/1266726939650031677