I got a different idea to handle it what I needed to do. Essentially just 
needed to have events in VGUI to cause methods on server side to run. I decided 
to make some macros that act like global functions (across modules) built on 
top of convars with change handlers. I used convars so that the global func can 
have a parameter. Brief example at the end of the file.

 

http://dl.dropbox.com/u/5105767/GlobalFunctions.h
 
> Date: Mon, 22 Mar 2010 08:10:30 +0100
> From: [email protected]
> To: [email protected]
> Subject: Re: [hlcoders] Passing data
> 
> Better use CBaseHandle<CBaseEntity> (alias EHANDLE)
> 
> On Mon, Mar 22, 2010 at 4:25 AM, Brent Lewis <[email protected]> wrote:
> >
> > I have a logic entity that handles some IO stuff but needs to be able to 
> > interact with the user via a vgui panel in the HUD. Is it safe to pass 
> > pointers and call methods on the objects, or how should I go about it?
> >
> > _______________________________________________
> > 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

Reply via email to