I've been trying to organize my code into some scripts and have run into some dependency problems. What I am trying to do is create some functions and enums that get used all over from the global and room scripts to other script files. Below is an example. In Script 1's header I define an enum that I use throughout the project, which works fine. If it try to use it in a function in script 2 that I want to import for the entire project, it seems I am not able to do so.
In this case I understand I could technically get away with an int to get it to work. When it comes to structs it is not as easily solved.
Script 1 Header
Code: ags
Script 2 Header
Code: ags
In this case I understand I could technically get away with an int to get it to work. When it comes to structs it is not as easily solved.
Script 1 Header
enum eA {
a,
b,
c
};
import function foo(eA);
Script 2 Header
import function bar(eA); // Error: PE03: Parse error at 'eA'