//===========================================================================// // File: cmpnnt.cc // // Project: MUNGA Brick: Entity // // Contents: // //---------------------------------------------------------------------------// // Date Who Modification // // -------- --- ---------------------------------------------------------- // // 12/14/94 ECH Initial coding. // //---------------------------------------------------------------------------// // Copyright (C) 1994-1995, Virtual World Entertainment, Inc. // // All Rights reserved worldwide // // This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL // //===========================================================================// #include "AdeptHeaders.hpp" #include "ComponentHeaders.hpp" //############################################################################# //########################## AdderChannel ##############################3 //############################################################################# //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void SmootherOf::InitializeClass() { Verify(!DefaultData); DefaultData = new ClassData( SmootherOfScalarClassID, "Adept::SmootherOfScalar", ChannelOf::DefaultData, 0, NULL ); Register_Object(DefaultData); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // SmootherOf* SmootherOf::Create( MemoryStream *stream, ComponentWeb *owning_web ) { Check_Object(stream); Check_Object(owning_web); Component *component = DoesComponentExist(stream, owning_web); SmootherOf *smoother; if (component) { smoother = Cast_Object(SmootherOf*, component); smoother->SkipStreamData(stream); } else { smoother = new SmootherOf(DefaultData, stream, owning_web); Register_Object(smoother); } return smoother; }