public void objdesc(int locid, string desc) { ObjectDescriptionPacket packet = new ObjectDescriptionPacket(); packet.AgentData.AgentID = this.frame.AgentID; packet.AgentData.SessionID = this.frame.SessionID; ObjectDescriptionPacket.ObjectDataBlock[] temp = new ObjectDescriptionPacket.ObjectDataBlock[1]; temp[0] = new ObjectDescriptionPacket.ObjectDataBlock(); temp[0].LocalID = (uint)locid; temp[0].Description = Utils.StringToBytes(desc); packet.ObjectData = temp; this.proxy.InjectPacket(packet, Direction.Outgoing); }
public void objdesc(int locid, string desc) { ObjectDescriptionPacket packet = new ObjectDescriptionPacket(); packet.AgentData.AgentID = this.frame.AgentID; packet.AgentData.SessionID = this.frame.SessionID; ObjectDescriptionPacket.ObjectDataBlock[] temp = new ObjectDescriptionPacket.ObjectDataBlock[1]; temp[0] = new ObjectDescriptionPacket.ObjectDataBlock(); temp[0].LocalID = (uint)locid; temp[0].Description = Utils.StringToBytes(desc); packet.ObjectData = temp; this.proxy.InjectPacket(packet, Direction.Outgoing); }