public int _GetMemberState(int[] memberState)
    {
        if (!ApolloVoice_lib.bInit)
        {
            return(0);
        }
        int           num           = memberState.Length;
        StringBuilder stringBuilder = new StringBuilder(num * 4);
        int           num2          = ApolloVoice_lib.ApolloVoiceGetMemberState(stringBuilder, num);

        if (num2 > 0)
        {
            string text = stringBuilder.ToString();
            int    num3 = 0;
            int    num4 = 0;
            int    num5 = 0;
            while (num5 < text.get_Length() && num4 < num)
            {
                if (text.get_Chars(num5).ToString() == "#")
                {
                    int    num6  = num5;
                    string text2 = text.Substring(num3, num6 - num3);
                    memberState[num4] = int.Parse(text2);
                    num3 = num5 + 1;
                    num4++;
                }
                num5++;
            }
            return(num2);
        }
        return(0);
    }
Exemple #2
0
    public int _GetMemberState(int[] memberState)
    {
        if (!ApolloVoice_lib.bInit)
        {
            return(4);
        }
        int nSize = memberState.Length;
        int num   = ApolloVoice_lib.ApolloVoiceGetMemberState(memberState, nSize);

        if (num > 0)
        {
            for (int i = 0; i < num; i++)
            {
            }
        }
        return(num);
    }