Hello guys, i wanted to know how i can receive a string from one resource which had public static string Test = "test"; into to my new resource?
P.S: Everything made in C#, no LUA help please.
Hello guys, i wanted to know how i can receive a string from one resource which had public static string Test = "test"; into to my new resource?
P.S: Everything made in C#, no LUA help please.
Exports.
How? Please is possible to provide me a snippet code?
BaseScript supplys an Export dictionary, maybe called Exports?
In Resource Alpha, something like
Exports.Add("mystring", new Func<string>(() => "Peter"));
And in Resource Beta something like
string myString = Exports["Alpha"].mystring()
By all means, that could be wrong as I have not touched C# in a while, but I hope you get the gist.