Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

davight
Copy link
Contributor

@davight davight commented Mar 17, 2025

Additions

  • New tag <proc[<script>].context_map[<map>]> to allow passing definitions in map format

Changes

  • Updated to proper tag handler

Related convo: https://discord.com/channels/315163488085475337/1266726939650031677

else if (attribute.startsWith("context_map", 2)) {
mappedDefinitions = attribute.contextAsType(2, MapTag.class);
attribute.fulfill(1);
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format

}
q.procedural = true;
}, new DurationTag(0), null, definitions, script.getContainer());

Copy link
Member

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);
Copy link
Member

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);
Copy link
Member

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

@davight
Copy link
Contributor Author

davight commented Apr 13, 2025

fixed!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants