Inheritance in .tdfs (or is it .fbis?)

Inheritance in .tdfs (or is it .fbis?)

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Inheritance in .tdfs (or is it .fbis?)

Post by PauloMorfeo »

If someone hapened to code a sistem where you could have templates (templates is a much better word than classes but see it as classes in OOP) for weapons, units, etc, would there be any reason for that to not be included?

I'm thinking in having either a set of folders/files with the templates, where, inside, they look exactly like the others:

Code: Select all

[Something]
{
    xxx=qwe;
}
Or no specific location for them but change the "[]" to "<>":

Code: Select all

<Something>
{
    xxxx=qwe;
}
And use inheritance with either:

Code: Select all

[Something]:<Some>
{}
or
[Something]:[Some]
{}
Or

Code: Select all

[Something]
{
    Inherits=Some;
    xxxx=qwe;
}
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Having some form of inheritance would be great. That's how things were done in Dawn of War, where everything was based off of a number of core templates.
Post Reply

Return to “Feature Requests”