Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
808 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ISERVERUNKNOWN_H
  8. #define ISERVERUNKNOWN_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "ihandleentity.h"
  13. class ICollideable;
  14. class IServerNetworkable;
  15. class CBaseEntity;
  16. // This is the server's version of IUnknown. We may want to use a QueryInterface-like
  17. // mechanism if this gets big.
  18. class IServerUnknown : public IHandleEntity
  19. {
  20. public:
  21. // Gets the interface to the collideable + networkable representation of the entity
  22. virtual ICollideable* GetCollideable() = 0;
  23. virtual IServerNetworkable* GetNetworkable() = 0;
  24. virtual CBaseEntity* GetBaseEntity() = 0;
  25. };
  26. #endif // ISERVERUNKNOWN_H