Page 1 of 1

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

Posted: 01 Oct 2006, 21:50
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;
}

Posted: 02 Oct 2006, 01:28
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.