Wintermute Engine Forum

Wintermute Engine => Feature requests, suggestions => Topic started by: Banbury on January 28, 2003, 08:33:20 AM

Title: More datatypes
Post by: Banbury on January 28, 2003, 08:33:20 AM
Dear Santa,
I wish WME had more DataTypes like Lists, Hashtables and Trees. Trees would be very helpful for conversations. Also a way to create your own datatypes with properties and methods would be neat.

Greetings

Banbury

(Sorry that I'm a little early with my wishlist  :D)
Title: Re:More datatypes
Post by: Mnemonic on January 28, 2003, 10:47:14 AM
The variables in WME are actually hash tables. By using just numbers as the hash codes, you get a simple list (array). And if you assign a value an another variable, you'll get a tree (i.e. technically speaking, one hash table member references an another hash table).
The only problem is, that the scripting language doesn't allow nested member references, like

Code: [Select]
MyVariable.MyProperty.AnotherProperty.YetAnotherNestedProperty = 10; // this doesn't work :-(


But maybe Santa's gonna do something about it, when the right time comes...  ;)