// ----------------------------------------------------------------------- // // // MODULE : SharedBaseFXStructs.h // // PURPOSE : Shared Base Special FX structs (i.e., structs that don't change // very often) // // CREATED : 10/21/99 // // (c) 1999 Monolith Productions, Inc. All Rights Reserved // // ----------------------------------------------------------------------- // #ifndef __SHARED_BASE_FX_STRUCTS_H__ #define __SHARED_BASE_FX_STRUCTS_H__ #include "ltbasedefs.h" // Base SpecialFX struct (used by client-side SpecialFX.h, and by // derived special fx structs (see SharedFXStructs.h)) struct SFXCREATESTRUCT { SFXCREATESTRUCT(); virtual ~SFXCREATESTRUCT() {} HOBJECT hServerObj; virtual void Write(ILTCSBase *pIface, HMESSAGEWRITE hMessage) {} virtual void Read(ILTCSBase *pIface, HMESSAGEREAD hMessage) {} // Server-side only... #ifndef _CLIENTBUILD virtual void Load(HMESSAGEREAD hRead) { Read(g_pLTServer, hRead); } virtual void Save(HMESSAGEWRITE hWrite) { Write(g_pLTServer, hWrite); } virtual void ReadProps() {} #endif }; inline SFXCREATESTRUCT::SFXCREATESTRUCT() { hServerObj = LTNULL; } #endif // __SHARED_BASE_FX_STRUCTS_H__