Digging through the macro is probably the best thing to do. CEntityFactoryDictionary is what you are looking for though.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DrBob Sent: Tuesday, November 29, 2005 12:53 PM To: [email protected] Subject: Re: [hlcoders] LINK_ENTITY_TO_CLASS I would think that it would be useful to find the definition of the LINK_ENTITY_TO_CLASS macro, and look through its code. That might help. :-) LDuke wrote: > -- > [ Picked text/plain from multipart/alternative ] > If an entity and class are linked using LINK_ENTITY_TO_CLASS(EntityName, > ClassName ), how can I later get the class pointer for an entity? > > For example, if I have LINK_ENTITY_TO_CLASS(my_gamerules, CGameRules), I > want to find the CGameRules* for the instance of the my_gamerules entity. > > L. Duke > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

