Skip to content
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

Backport AGS.Native.IScriptCompiler to 3.6.2 #2560

Conversation

ivan-mogilko
Copy link
Contributor

Backport refactor part from #2552, strictly to sync the code between branches.

IScriptCompiler is a compiler interface that lets to address any available compiler.
Implementation AGS3ScriptCompiler, which basically wrap calls to the native compiler lib.

NOTE: There's already IScriptCompiler in AGS.CScript.Compiler managed library. But it appears to be complicated to use at the moment, because it has number of ties with existing code, including separate message (error) types.
I left big TODO comments about merging these interfaces, would someone be willing to improve this situation.
This probably will have to be done anyway would Editor work with standalone compilers.
@ivan-mogilko ivan-mogilko added what: editor related to the game editor context: script compiler context: code fixing/improving existing code: refactor, optimise, tidy... labels Oct 30, 2024
@ivan-mogilko ivan-mogilko merged commit f85ee06 into adventuregamestudio:master Oct 30, 2024
21 checks passed
@ivan-mogilko ivan-mogilko deleted the 362--backport-compileriface branch October 30, 2024 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context: code fixing/improving existing code: refactor, optimise, tidy... context: script compiler what: editor related to the game editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant