From f56bb35301836e56582a575a75864392a0177875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20P=2E=20Tjern=C3=B8?= Date: Mon, 2 Dec 2013 19:31:46 -0800 Subject: Fix line endings. WHAMMY. --- mp/src/game/server/entityinput.h | 100 +++++++++++++++++++-------------------- 1 file changed, 50 insertions(+), 50 deletions(-) (limited to 'mp/src/game/server/entityinput.h') diff --git a/mp/src/game/server/entityinput.h b/mp/src/game/server/entityinput.h index 6668619d..df6b69be 100644 --- a/mp/src/game/server/entityinput.h +++ b/mp/src/game/server/entityinput.h @@ -1,50 +1,50 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// -// -// Purpose: -// -// $NoKeywords: $ -// -//=============================================================================// - -#ifndef INPUTVAR_H -#define INPUTVAR_H - -#ifdef _WIN32 -#pragma once -#endif - -#include "baseentity.h" -#include "entitylist.h" - -//----------------------------------------------------------------------------- -// Purpose: Used to request a value, or a set of values, from a set of entities. -// used when a multi-input variable needs to refresh it's inputs -//----------------------------------------------------------------------------- -class CMultiInputVar -{ -public: - CMultiInputVar() : m_InputList(NULL) {} - ~CMultiInputVar(); - - struct inputitem_t - { - variant_t value; // local copy of variable (maybe make this a variant?) - int outputID; // the ID number of the output that sent this - inputitem_t *next; - - // allocate and free from MPool memory - static void *operator new( size_t stAllocBlock ); - static void *operator new( size_t stAllocateBlock, int nBlockUse, const char *pFileName, int nLine ); - static void operator delete( void *pMem ); - static void operator delete( void *pMem, int nBlockUse, const char *pFileName, int nLine ) { operator delete(pMem); } - }; - - inputitem_t *m_InputList; // list of data - int m_bUpdatedThisFrame; - - void AddValue( variant_t newVal, int outputID ); - - DECLARE_SIMPLE_DATADESC(); -}; - -#endif // INPUTVAR_H +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// + +#ifndef INPUTVAR_H +#define INPUTVAR_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "baseentity.h" +#include "entitylist.h" + +//----------------------------------------------------------------------------- +// Purpose: Used to request a value, or a set of values, from a set of entities. +// used when a multi-input variable needs to refresh it's inputs +//----------------------------------------------------------------------------- +class CMultiInputVar +{ +public: + CMultiInputVar() : m_InputList(NULL) {} + ~CMultiInputVar(); + + struct inputitem_t + { + variant_t value; // local copy of variable (maybe make this a variant?) + int outputID; // the ID number of the output that sent this + inputitem_t *next; + + // allocate and free from MPool memory + static void *operator new( size_t stAllocBlock ); + static void *operator new( size_t stAllocateBlock, int nBlockUse, const char *pFileName, int nLine ); + static void operator delete( void *pMem ); + static void operator delete( void *pMem, int nBlockUse, const char *pFileName, int nLine ) { operator delete(pMem); } + }; + + inputitem_t *m_InputList; // list of data + int m_bUpdatedThisFrame; + + void AddValue( variant_t newVal, int outputID ); + + DECLARE_SIMPLE_DATADESC(); +}; + +#endif // INPUTVAR_H -- cgit v1.2.3