Hey folks,
For my SP mod I have designed and tested (as much as is currently possible) a class for an additional VGUI panel to display the player's inventory (CInventoryPanel), and a class (CPlayerInventory) to hold data about the player's inventory, along with some helper classes for each.
My problem now is that I have no experience with multi-project solutions, and I am not sure how to get a class that is necessarily part of client.dll (where VGUI stuff goes) to be able to call member functions of a class that is necessarily part of server.dll (where player and entity info goes). If the player can have an inventory but not see it, or see it but not have it, it's not much use =P
If this is impossible and the panel cannot directly access member functions of the player's inventory, then perhaps networked variables are the solution. In that case I'd appreciate any pointers towards a good tutorial on those, as I understand them lots in concept but little in practice.
Another way to help me would be to point out a currently-extant pair of classes in the Source SDK that do cross-dll communication that doesn't happen every frame (ideally the inventory class would only act when the inventory panel asked it to); I could examine that relationship for hints on how to establish my own.
Any help appreciated!




