What's wrong with this... when I try to do:
I get the following error:
But all works (?) when I do:
TTemplate is my own class (Type TTemplate with some fields), and TTemplateManager has "Global templateList:TList = CreateList()"
What's the problem with 'first'? (and how to get the first item in this list?)
Local template:TTemplate = TTemplateManager.templateList.First
I get the following error:
Compile Error: Unable to convert from 'Object()' to 'TTemplate' Build Error: failed to compile D:/Dead Wake/development/_code/game.bmx
But all works (?) when I do:
for Local template:TTemplate = EachIn TTemplateManager.templateList TCharacterManager.CreateCharacter(template) Next
TTemplate is my own class (Type TTemplate with some fields), and TTemplateManager has "Global templateList:TList = CreateList()"
What's the problem with 'first'? (and how to get the first item in this list?)