//===========================================================================// // File: BettyComponent_Tool.cpp // // Project: MUNGA Brick: Win95 Video Renderer // // Contents: Windows95 Layer Video Renderer // //---------------------------------------------------------------------------// // Date Who Modification // // -------- --- ---------------------------------------------------------- // // 03/24/99 SMJ Initial coding. // //---------------------------------------------------------------------------// // Copyright (C) 1997, Virtual World Entertainment, Inc. // // All Rights reserved worldwide // // This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL // //===========================================================================// #include "AdeptHeaders.hpp" #include "BettyComponent.hpp" //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // BettyComponent::ClassData* BettyComponent::CreateFactoryRequest(FactoryRequestParameters *parameters,Entity::ClassData *class_data) { Check_Object(parameters); // //------------------------------------------------------------------------- // Allocate enough room for what we need to write out, then call our parent //------------------------------------------------------------------------- // MemoryStream *component_stream = parameters->m_stream; Check_Object(component_stream); component_stream->AllocateBytes(sizeof(BettyComponent)); bool result = SoundComponent::CreateFactoryRequest(parameters,class_data) != NULL; // //----------------------- // Read the viewing state //----------------------- // Page *page = parameters->m_page; Check_Object(page); int bettyPriority = 0; page->GetEntry("BettyPriority", &bettyPriority); *component_stream << bettyPriority; Check_Object(DefaultData); return (result) ? DefaultData : NULL; }