summaryrefslogtreecommitdiff
path: root/game/shared/portal/prop_portal_shared.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/portal/prop_portal_shared.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/portal/prop_portal_shared.h')
-rw-r--r--game/shared/portal/prop_portal_shared.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/game/shared/portal/prop_portal_shared.h b/game/shared/portal/prop_portal_shared.h
new file mode 100644
index 0000000..ba4b7b0
--- /dev/null
+++ b/game/shared/portal/prop_portal_shared.h
@@ -0,0 +1,49 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef PROP_PORTAL_SHARED_H
+#define PROP_PORTAL_SHARED_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "cbase.h"
+
+#ifdef CLIENT_DLL
+#include "c_prop_portal.h"
+#else
+#include "prop_portal.h"
+#endif
+
+// CProp_Portal enum for the portal corners (if a user wants a specific corner)
+enum PortalCorners_t { PORTAL_DOWN_RIGHT = 0, PORTAL_DOWN_LEFT, PORTAL_UP_RIGHT, PORTAL_UP_LEFT };
+
+class CProp_Portal_Shared //defined as a class to make intellisense more intelligent
+{
+public:
+ static void UpdatePortalTransformationMatrix( const matrix3x4_t &localToWorld, const matrix3x4_t &remoteToWorld, VMatrix *pMatrix );
+
+ static bool IsEntityTeleportable( CBaseEntity *pEntity );
+ //static CProp_Portal *GetPortal1( bool bCreateIfNotFound = false );
+ //static CProp_Portal *GetPortal2( bool bCreateIfNotFound = false );
+
+ static const Vector vLocalMins;
+ static const Vector vLocalMaxs;
+
+#ifdef CLIENT_DLL
+ static CUtlVector<C_Prop_Portal *> AllPortals; //an array of existing portal entities
+#else
+ static CUtlVector<CProp_Portal *> AllPortals; //an array of existing portal entities
+#endif //#ifdef CLIENT_DLL
+};
+
+
+
+
+
+#endif //#ifndef PROP_PORTAL_SHARED_H \ No newline at end of file