Template:CD/doc/zh: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Documentation subpage:zh-cn}} <!-- Please place categories where indicated at the bottom of this page.) --> 此模板用于为实体生成类(Class)层次结构。 == 用...")
 
m (→‎用法: clean up, replaced: {{tip:zh-cn → {{tip)
Line 5: Line 5:
== 用法 ==
== 用法 ==
<nowiki>{{CD:zh-cn|<实体 class>|file1=<在哪里定义 class 的文件>}}</nowiki>
<nowiki>{{CD:zh-cn|<实体 class>|file1=<在哪里定义 class 的文件>}}</nowiki>
{{tip:zh-cn|如果某些类名的模板失败,请尝试使用 [[Template:CD2]]}}
{{tip|如果某些类名的模板失败,请尝试使用 [[Template:CD2]]}}


== 示例和参数 ==
== 示例和参数 ==

Revision as of 12:15, 6 January 2024

Template:Documentation subpage:zh-cn 此模板用于为实体生成类(Class)层次结构。

用法

{{CD:zh-cn|<实体 class>|file1=<在哪里定义 class 的文件>}}

Tip.pngTip:如果某些类名的模板失败,请尝试使用 Template:CD2

示例和参数

{{CD:zh-cn|CGasCan|file1=somefile.cpp}}
C++ 类层级
CGasCan
CCarriedPropWeapon
CCarriedProp
CBaseBackpackItem
CTerrorWeapon
CWeaponCSBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
C++ somefile.cpp