Exemplo n.º 1
0
    public static void EnableCognitivActionsList()
    {
        Debug.Log("Set CognitivList Enable");
        EmoCognitiv.cognitivActionLever = 0;
        uint num = 0u;

        for (int i = 1; i < EmoCognitiv.cognitivActionList.Length; i++)
        {
            if (EmoCognitiv.cognitivActionsEnabled[i])
            {
                num |= (uint)EmoCognitiv.cognitivActionList[i];
                EmoCognitiv.cognitivActionLever++;
            }
        }
        EdkDll.EE_CognitivSetActiveActions((uint)EmoUserManagement.currentUser, num);
    }
Exemplo n.º 2
0
    /// <summary>
    /// Enable actions in arraylist , Work only in 2.6 or upper
    /// </summary>
    public static void EnableCognitivActionsList()
    {
        Debug.Log("Set CognitivList Enable");
        cognitivActionLever = 0;
        uint cognitivActions = 0x0000;

        for (int i = 1; i < cognitivActionList.Length; i++)
        {
            if (cognitivActionsEnabled[i])
            {
                cognitivActions = cognitivActions | ((uint)cognitivActionList[i]);
                cognitivActionLever++;
            }
        }
        EdkDll.EE_CognitivSetActiveActions((uint)EmoUserManagement.currentUser, cognitivActions);
        //EmoEngine.Instance.CognitivSetActiveActions((uint)EmoUserManagement.currentUser,(uint) cognitivActions);
    }
Exemplo n.º 3
0
 public void CognitivSetActiveActions(uint userId, uint activeActions)
 {
     EmoEngine.errorHandler(EdkDll.EE_CognitivSetActiveActions(userId, activeActions));
 }