예제 #1
0
 private static extern uint InitServerLib(ref ServerEventCallbackMapper functionPointers, LogTypes logTypes, string logFolderPath);
예제 #2
0
    /* Assign the used callback function pointers */

    protected override void initMapper()
    {
        if (mapperInitialized) return;

        _mapper = new ServerEventCallbackMapper();
        _mapper.onClientConnected = onClientConnected;
        _mapper.onClientDisconnected = onClientDisconnected;
        _mapper.onClientMoved = onClientMoved;
        _mapper.onChannelCreated = onChannelCreated;
        _mapper.onChannelEdited = onChannelEdited;
        _mapper.onChannelDeleted = onChannelDeleted;
        _mapper.onServerTextMessage = onServerTextMessage;
        _mapper.onChannelTextMessage = onChannelTextMessage;
        _mapper.onUserLoggingMessage = onUserLoggingMessage;
        _mapper.onClientStartTalking = onClientStartTalking;
        _mapper.onClientStopTalking = onClientStopTalking;
        _mapper.onAccountingError = onAccountingError;
    }