-
Notifications
You must be signed in to change notification settings - Fork 0
/
HM_Database.cpp
40 lines (35 loc) · 1.08 KB
/
HM_Database.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "stdafx.h"
#include "HM_Database.h"
//添加檔案版本號
IMPLEMENT_SERIAL(CHM_Database, CObject, 1)
CHM_Database::CHM_Database()
{
}
CHM_Database::CHM_Database(CString m_ptOrigin, CString m_ptEnd, CString m_Action , CString m_MoveType, CString m_ThreePoint) {
this->m_ptOrigin = m_ptOrigin;
this->m_ptEnd = m_ptEnd;
this->m_Action = m_Action;
this->m_MoveType = m_MoveType;
this->m_ThreePoint = m_ThreePoint;
}
CHM_Database::CHM_Database(CString m_Stand) {
this->m_Stand = m_Stand;
}
CHM_Database::~CHM_Database()
{
}
void CHM_Database::Serialize(CArchive& ar) {
if (ar.IsStoring()) {
ar << m_ptOrigin << m_ptEnd<< m_Action << m_MoveType << m_ThreePoint << m_Stand;
}
else {
ar >> m_ptOrigin >> m_ptEnd>> m_Action >> m_MoveType >> m_ThreePoint >> m_Stand;
}
}
void CHM_Database::WKArrayCopy(std::vector<CString>
*pCStrA, UINT Count)
{
pCStrA->insert(pCStrA->begin() + Count * 3, m_ptEnd);
pCStrA->insert(pCStrA->begin() + Count * 3 + 1, m_Action);
pCStrA->insert(pCStrA->begin() + Count * 3 + 2, m_MoveType);
}