Classname: Difference between revisions
Jump to navigation
Jump to search

TomEdwards (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) No edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{LanguageBar}} | |||
{{this is a|[[keyvalue]]|name=classname|engine=GoldSrc|engine1=Source|engine2=Source 2}} It indicates what the type of object it the entity is. {{ent|npc_zombie}}, {{ent|point_spotlight}} and {{ent|func_tracktrain}} are all classnames of different entities. | |||
Programmers can link a C++ class | Programmers can link a classname to C++ class with the <code>[[LINK_ENTITY_TO_CLASS()]]</code> macro. | ||
[[Category:Glossary]] | [[Category:Glossary]] | ||
{{stub}} |
Latest revision as of 08:00, 1 May 2025


classname
is a keyvalue available in all GoldSrc,
Source, and
Source 2 games. It indicates 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.