这篇条目有关 "金源" 引擎。如需详情,点击这里。
这篇条目有关 Source引擎。如需详情,点击这里。
这篇条目有关 Source 2引擎。如需详情,点击这里。

类名

From Valve Developer Community
< Zh
Revision as of 22:14, 31 December 2025 by WoShiGeNiCheng (talk | contribs) (Created page with "{{LanguageBar|classname|title=类名}} {{this is a|{{L|keyvalue}}|name=类名|engine=GoldSrc|engine1=Source|engine2=Source 2}} 它指示实体是什么类型的对象。{{ent|npc_zombie}}、{{ent|point_spotlight}} 和 {{ent|func_tracktrain}} 都是不同实体的类名。 程序员可以使用 <code>{{L|LINK_ENTITY_TO_CLASS()}}</code> 宏将类名链接到 C++ 类。 {{ACategory|Glossary}} {{stub}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)Русский (ru)中文 (zh)Translate (Translate)

类名keyvalue(en),可在所有的 金源 金源起源 起源起源2 起源2 游戏中使用。 它指示实体是什么类型的对象。npc_zombiepoint_spotlightfunc_tracktrain 都是不同实体的类名。

程序员可以使用 LINK_ENTITY_TO_CLASS()(en) 宏将类名链接到 C++ 类。

小作品

This article or section is a stub. You can help by expanding it.