コード例 #1
0
CInventoryItem::CInventoryItem() 
{
	m_net_updateData	= NULL;
	m_flags.set			(Fbelt,FALSE);
	m_flags.set			(Fruck,TRUE);
	m_flags.set			(FRuckDefault,TRUE);
	m_pInventory		= NULL;

	SetDropManual		(FALSE);

	m_flags.set			(FCanTake,TRUE);
	m_can_trade			= TRUE;
	m_flags.set			(FCanTrade, m_can_trade);
	m_flags.set			(FUsingCondition,FALSE);
	m_fCondition		= 1.0f;

	m_name = m_nameShort = NULL;

	m_ItemCurrPlace.value			= 0;
	m_ItemCurrPlace.type			= eItemPlaceUndefined;
	m_ItemCurrPlace.base_slot_id	= NO_ACTIVE_SLOT;
	m_ItemCurrPlace.slot_id			= NO_ACTIVE_SLOT;

	m_Description					= "";
	m_section_id					= 0;
	m_flags.set						(FIsHelperItem,FALSE);
}
コード例 #2
0
ファイル: inventory_item.cpp プロジェクト: OLR-xray/OLR-3.0
CInventoryItem::CInventoryItem() 
{
	m_net_updateData	= NULL;
	SetSlot(NO_ACTIVE_SLOT);
	m_flags.set			(Fbelt,FALSE);
	m_flags.set			(Fruck,TRUE);
	m_flags.set			(FRuckDefault,TRUE);
	m_pCurrentInventory	= NULL;

	SetDropManual		(FALSE);

	m_flags.set			(FCanTake,TRUE);
	m_flags.set			(FCanTrade,TRUE);
	m_flags.set			(FUsingCondition,FALSE);
	m_fCondition		= 1.0f;

	m_name = m_nameShort = NULL;

	m_eItemPlace		= eItemPlaceUndefined;
	m_Description		= "";
	m_cell_item			= NULL;
	need_slot			= false;
}