blob: ba4b7b0cf115a7eff81981fcb6b06f0711d10a0e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
|