stattype on features

For AI and campaign script related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

stattype on features

Post by aubergine »

Would it be possible to rename .stattype property on feature objects to something else, maybe .featureType?

Droids have droidType, structures have stattype (structureType would be nicer) so for consistency it would be preferable if features has featureType.

As .stattype has only just been introduced on features, it's hardly used at the moment, but will soon become heavily used once campaign porting goes in to full effect, so now is likely the last good opportunity to rename the property. It would certainly make describing the property and applicable values in documentation easier ;)
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: stattype on features

Post by Per »

I think something like a .subtype property on all three object types would make more sense.
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: stattype on features

Post by aubergine »

.category ?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Shadow Wolf TJC
Regular
Regular
Posts: 1047
Joined: 16 Apr 2011, 05:12
Location: Raleigh, NC

Re: stattype on features

Post by Shadow Wolf TJC »

I'll have to go with Per's suggestion. It sounds like it'd make the scripting a bit more versatile.
Creator of Warzone 2100: Contingency!
Founder of Wikizone 2100: http://wikizone2100.wikia.com/wiki/Wikizone_2100
Post Reply