示例#1
0
        public void BeginAvatarPropertiesRequest(LLUUID avatarid, AvatarPropertiesCallback apc, AvatarStatisticsCallback asc, AvatarIntrestsCallback aic)
        {
            //Set teh callback!
            AvatarPropertiesCallbacks[avatarid] = apc;
            AvatarStatisticsCallbacks[avatarid] = asc;
            AvatarIntrestsCallbacks[avatarid]   = aic;
            //Oh noes
            //Packet construction, good times
            AvatarPropertiesRequestPacket aprp = new AvatarPropertiesRequestPacket();

            AvatarPropertiesRequestPacket.AgentDataBlock adb = new AvatarPropertiesRequestPacket.AgentDataBlock();
            adb.AgentID    = Client.Network.AgentID;
            adb.SessionID  = Client.Network.SessionID;
            adb.AvatarID   = avatarid;
            aprp.AgentData = adb;
            //send the packet!
            Client.Network.SendPacket(aprp);
        }
 public void BeginAvatarPropertiesRequest(LLUUID avatarid, AvatarPropertiesCallback apc, AvatarStatisticsCallback asc, AvatarIntrestsCallback aic)
 {
     //Set teh callback!
     AvatarPropertiesCallbacks[avatarid] = apc;
     AvatarStatisticsCallbacks[avatarid] = asc;
     AvatarIntrestsCallbacks[avatarid] = aic;
     //Oh noes
     //Packet construction, good times
     AvatarPropertiesRequestPacket aprp = new AvatarPropertiesRequestPacket();
     AvatarPropertiesRequestPacket.AgentDataBlock adb = new AvatarPropertiesRequestPacket.AgentDataBlock();
     adb.AgentID = Client.Network.AgentID;
     adb.SessionID = Client.Network.SessionID;
     adb.AvatarID = avatarid;
     aprp.AgentData = adb;
     //send the packet!
     Client.Network.SendPacket(aprp);
 }