Static / shared class or global variables Hello, I just realized that Angelscript does not really have a 'static' class variables like most languages. What would be the best approach to achieve a variable that will be shared among all instances? I tried to define global int but then it would not allow it because the class accessing it is shared. If I make it shared it doesn't compile - is it because global variables can't still be shared? I tried looking through the changelog and documentation and could not find anything https://ift.tt/eA8V8J
Hello, I just realized that Angelscript does not really have a 'static' class variables like most languages. What would be the best approach to achieve a variable that will be shared among all instances? I tried to define global int but then it would not allow it because the class accessing it is shared. If I make it shared it doesn't compile - is it because global variables can't still be shared? I tried looking through the changelog and documentation and could not find anything
from GameDev.net https://ift.tt/35rwAB1
from GameDev.net https://ift.tt/35rwAB1
ليست هناك تعليقات