1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- ** Copyright (C) 1996, 1997 Microsoft Corporation. All Rights Reserved.
- **
- ** File: chaffTypeIGC.cpp
- **
- ** Author:
- **
- ** Description:
- ** Implementation of the CchaffTypeIGC class. This file was initially created by
- ** the ATL wizard for the core object.
- **
- ** History:
- */
- // chaffTypeIGC.cpp : Implementation of CchaffTypeIGC
- #include "pch.h"
- #include "chaffTypeIGC.h"
- /////////////////////////////////////////////////////////////////////////////
- // CchaffTypeIGC
- HRESULT CchaffTypeIGC::Initialize(ImissionIGC* pMission, Time now, const void* data, int dataSize)
- {
- assert (pMission);
- m_pMission = pMission;
- HRESULT hr = S_OK;
- if (data && (dataSize == sizeof(DataChaffTypeIGC)))
- {
- m_data = *((DataChaffTypeIGC*)data);
- pMission->AddExpendableType(this);
- }
- else
- hr = E_INVALIDARG;
- return hr;
- }
- int CchaffTypeIGC::Export(void* data) const
- {
- if (data)
- *((DataChaffTypeIGC*)data) = m_data;
- return sizeof(DataChaffTypeIGC);
- }
|