Files
firestorm/Gameleap/code/mw4/Libraries/Adept/Matcher.cpp
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

61 lines
2.0 KiB
C++

//===========================================================================//
// File: Matcher.cpp //
//---------------------------------------------------------------------------//
// Date Who Modification //
// -------- --- ---------------------------------------------------------- //
// 02/18/98 ECH Authored //
//---------------------------------------------------------------------------//
// Copyright (C) 1994-1998, Virtual World Entertainment, Inc. //
// All Rights reserved worldwide //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
//===========================================================================//
#include "AdeptHeaders.hpp"
#include "Matcher.hpp"
//#############################################################################
//########################## MatcherChannel #############################
//#############################################################################
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
MatcherOf<int>::InitializeClass()
{
Verify(!DefaultData);
DefaultData =
new ClassData(
MatcherOfIntClassID,
"Adept::MatcherOfInt",
BaseClass::DefaultData,
0, NULL
);
Register_Object(DefaultData);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
MatcherOf<int>*
MatcherOf<int>::Create(
MemoryStream *stream,
ComponentWeb *owning_web
)
{
Check_Object(stream);
Check_Object(owning_web);
Component *component = DoesComponentExist(stream, owning_web);
MatcherOf<int> *matcher;
if (component)
{
matcher = Cast_Object(MatcherOf<int>*, component);
matcher->SkipStreamData(stream);
}
else
{
matcher = new MatcherOf<int>(DefaultData, stream, owning_web);
Register_Object(matcher);
}
return matcher;
}