AW CHAT SESSION

From ActiveWiki
Revision as of 16:45, 27 October 2008 by Macavity (talk | contribs) (Cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Minimum requirements
Added in version 2.1
SDKbuild 13


AW_CHAT_SESSION

Type

Integer (read only)

Description

Session number of the user that sent a chat message.

Notes

Every user (and every bot) is assigned a unique session number at login. This session number can be used by SDK applications to track individual users as they move around the scene.

Usage

void handle_chat (void)
{
  printf ("%d just said \"%s\"\n",
          aw_int (AW_CHAT_SESSION),
          aw_string (AW_CHAT_MESSAGE));
}

aw_event_set (AW_EVENT_CHAT, handle_chat);

Used by

See also