Consider the code:
TextureID t = TexMan.checkForTexture("titlepic", TexMan.Type_Any);
Straightforward attempt to populate the array won't succeed:
Running a mod with such code results in error: "Numeric type expected, got a name".
However, casting TextureID to int works:
So, it's possible to create an array of TextureIDs but it's impossible to fill it without type casting. This is inconvenient and looks hacky.
1. Is a bug or ZScript limitation?
2. If it's a ZScript limitation, is it safe to cast TextureID to int? I see that C++ TextureID counterpart, FTextureID, consists of a single int, so for now type casting is probably safe. Will it remain so?
You do not have the required permissions to view the files attached to this post.