//----------------------------------------------------------------------------- // Purpose: // Input : *channel - //----------------------------------------------------------------------------- void CChoreoActor::RemoveChannel( CChoreoChannel *channel ) { int idx = FindChannelIndex( channel ); if ( idx == -1 ) return; m_Channels.Remove( idx ); }
void* RPCFile::ReadWholeChannel(const char* name) const { int idx = FindChannelIndex(name); return (idx >= 0) ? ReadWholeChannel(idx) : NULL; }
RPCFile::ChannelReader* RPCFile::OpenChannel(const char* name, bool newFileStream) const { int idx = FindChannelIndex(name); return (idx >= 0) ? OpenChannel(idx, newFileStream) : NULL; }
const RPCFile::ChannelInfo* RPCFile::GetChannelInfo(const char* name) const { int idx = FindChannelIndex(name); return (idx >= 0) ? &m_channels[idx] : NULL; }