Classname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{lang|Classname}}
{{LanguageBar}}
'''classname''' is a [[keyvalue]] indicating what the type of object it the entity is. "npc_zombie", "point_spotlight" and "func_tracktrain" are all classnames of different entities.
'''classname''' is a [[keyvalue]] indicating what the type of object it the entity is. "npc_zombie", "point_spotlight" and "func_tracktrain" are all classnames of different entities.


Programmers can link a C++ class to a classname with the <code>[[LINK_ENTITY_TO_CLASS()]]</code> macro.
Programmers can link a classname to C++ class with the <code>[[LINK_ENTITY_TO_CLASS()]]</code> macro.


[[Category:Glossary]]
[[Category:Glossary]]

Revision as of 07:29, 1 May 2025

English (en)Translate (Translate)

classname is a keyvalue indicating what the type of object it the entity is. "npc_zombie", "point_spotlight" and "func_tracktrain" are all classnames of different entities.

Programmers can link a classname to C++ class with the LINK_ENTITY_TO_CLASS() macro.


Stub

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