Template talk:CD/superclass

From Valve Developer Community
Jump to: navigation, search

Using {{CD}}

If I want to use this (pretty useful) template on an entity whose class isn't in the superclass, do I just go and add it there?

Or can it be used (or made to use) to specify the derived class in the template tag and then its base class? Something like {{CD|CAI_RadialLinkController|base=CBaseEntity|file1=ai_dynamiclink.cpp}}

(P. S. writing here as trying to add a topic on {{CD}}'s Talk redirects to {{CDA}}'s Talk... decided not to risk messing it up somehow) Cvoxalury (talk) 11:10, 27 June 2024 (PDT)

Yes can go ahead and add it there. Other option is using Template:CDA which simply builds the hierarchy from the specified parameters without calling CD superclass (added documentation there). Currently not planning to add the base parameter but it might be needed at some point when there are 2 classes with same name that have different superclass. Also moved the CDA talk page to the CD talk page so it's not confusing. Nescius (talk) 13:07, 27 June 2024 (PDT)
Ah, I missed the fact CDA would let me build the 'staircase'. Thanks. Cvoxalury (talk) 13:09, 27 June 2024 (PDT)
Added bunch of classes to this and made these pages to make it easier to check classname List of Source SDK 2013 Entities , List of Alien Swarm: Reactive Drop Entities Nescius (talk) 00:13, 29 June 2024 (PDT)