コード例 #1
0
int
MixerInput::GetInputChannelType(int channel)
{
	if (channel < 0 || channel >= fInputChannelCount)
		return 0;
	return GetChannelType(channel, fInputChannelMask);
}
コード例 #2
0
ファイル: MMatchChannel.cpp プロジェクト: Asunaya/RefinedGunz
bool MMatchChannel::CheckLifePeriod()
{
	if (GetChannelType() == MCHANNEL_TYPE_PRESET) return true;
	if (GetObjCount() > 0) return true;
	if (GetEmptyPeriod() < MTICK_CHANNEL_EMPTY_PERIOD_LIMIT) return true;

	return false;
}
コード例 #3
0
ファイル: MMatchChannel.cpp プロジェクト: MagistrAVSH/node3d
bool MMatchChannel::CheckLifePeriod()
{
	MCHANNEL_TYPE nType = GetChannelType();
	if (nType == MCHANNEL_TYPE_PRESET || nType == MCHANNEL_TYPE_DUELTOURNAMENT) return true;

	if (GetObjCount() > 0) return true;
	if (GetEmptyPeriod() < MTICK_CHANNEL_EMPTY_PERIOD_LIMIT) return true;

	return false;
}