-
Notifications
You must be signed in to change notification settings - Fork 9
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
Using object types outside of current list #9
Comments
Apologies for the delayed reply. The list of objects available to Megalo is defined in the As such:
It must also be noted that while it may be possible to extend the |
Addendum: I could in theory add a feature to allow people to override or replace the object type names for the compiler, but that would have to be opt-in on a per-script basis (rather than a program-wide setting) for the following reasons:
We could set up If I add this feature, I would need to validate names in the new list to enforce the usual rules against shadowing built-ins and keywords, with the additional caveat that I have to let you shadow built-ins that belong to Ideal syntax, then, would probably be something like this with some syntax for the object names:
Alternatively, we could allow this either inline in a script or in a secondary file:
And then we could allow imports of secondary files with another pragma (using paths relative to the application directory):
The overall syntax for pragma directives, then, would be:
|
Additional considerations:
|
From my understanding the compiler checks objects in the script to a predefined list to grab it's tag location.
Is there any way for users to add on to this list or place other types of items that are not already predefined such as street_cone or even ff_plat_2x1_flat?
If not I wouldn't getting a list together of some objects and their tags if I could provide those to be added.
The text was updated successfully, but these errors were encountered: