diff --git a/libsecondlife-cs/examples/AnimationSample/AnimationSample.csproj b/libsecondlife-cs/examples/AnimationSample/AnimationSample.csproj
new file mode 100644
index 00000000..66ebf1fc
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/AnimationSample.csproj
@@ -0,0 +1,84 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {4EF98AD4-B3B3-42B0-9273-13A614A823F7}
+ WinExe
+ Properties
+ AnimationSample
+ AnimationSample
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.cs
+
+
+
+
+ Designer
+ Form1.cs
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ {D9CDEDFB-8169-4B03-B57F-0DF638F044EC}
+ libsecondlife
+
+
+
+
+
\ No newline at end of file
diff --git a/libsecondlife-cs/examples/AnimationSample/Form1.Designer.cs b/libsecondlife-cs/examples/AnimationSample/Form1.Designer.cs
new file mode 100644
index 00000000..6d697050
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/Form1.Designer.cs
@@ -0,0 +1,152 @@
+namespace AnimationSample
+{
+ partial class Form1
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ try
+ {
+ client.Network.Logout();
+ }
+ catch
+ {
+ //ignore
+ }
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.txtLast = new System.Windows.Forms.TextBox();
+ this.txtFirst = new System.Windows.Forms.TextBox();
+ this.txtPassword = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.btnLogin = new System.Windows.Forms.Button();
+ this.btnPlay = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // txtLast
+ //
+ this.txtLast.Location = new System.Drawing.Point(162, 33);
+ this.txtLast.Name = "txtLast";
+ this.txtLast.Size = new System.Drawing.Size(133, 20);
+ this.txtLast.TabIndex = 0;
+ this.txtLast.Text = "Malthus";
+ //
+ // txtFirst
+ //
+ this.txtFirst.Location = new System.Drawing.Point(23, 33);
+ this.txtFirst.Name = "txtFirst";
+ this.txtFirst.Size = new System.Drawing.Size(133, 20);
+ this.txtFirst.TabIndex = 0;
+ this.txtFirst.Text = "Jesse";
+ //
+ // txtPassword
+ //
+ this.txtPassword.Location = new System.Drawing.Point(301, 33);
+ this.txtPassword.Name = "txtPassword";
+ this.txtPassword.PasswordChar = '*';
+ this.txtPassword.Size = new System.Drawing.Size(133, 20);
+ this.txtPassword.TabIndex = 0;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(159, 17);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(58, 13);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "Last Name";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(20, 17);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(57, 13);
+ this.label2.TabIndex = 1;
+ this.label2.Text = "First Name";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(298, 17);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 13);
+ this.label3.TabIndex = 1;
+ this.label3.Text = "Password";
+ //
+ // btnLogin
+ //
+ this.btnLogin.Location = new System.Drawing.Point(305, 61);
+ this.btnLogin.Name = "btnLogin";
+ this.btnLogin.Size = new System.Drawing.Size(128, 29);
+ this.btnLogin.TabIndex = 2;
+ this.btnLogin.Text = "Login";
+ this.btnLogin.UseVisualStyleBackColor = true;
+ this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
+ //
+ // btnPlay
+ //
+ this.btnPlay.Location = new System.Drawing.Point(162, 131);
+ this.btnPlay.Name = "btnPlay";
+ this.btnPlay.Size = new System.Drawing.Size(133, 42);
+ this.btnPlay.TabIndex = 3;
+ this.btnPlay.Text = "Play \"dance1\" animation";
+ this.btnPlay.UseVisualStyleBackColor = true;
+ this.btnPlay.Click += new System.EventHandler(this.btnPlay_Click);
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(464, 196);
+ this.Controls.Add(this.btnPlay);
+ this.Controls.Add(this.btnLogin);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.txtPassword);
+ this.Controls.Add(this.txtFirst);
+ this.Controls.Add(this.txtLast);
+ this.Name = "Form1";
+ this.Text = "LibSL Animation Example";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TextBox txtLast;
+ private System.Windows.Forms.TextBox txtFirst;
+ private System.Windows.Forms.TextBox txtPassword;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Button btnLogin;
+ private System.Windows.Forms.Button btnPlay;
+ }
+}
+
diff --git a/libsecondlife-cs/examples/AnimationSample/Form1.cs b/libsecondlife-cs/examples/AnimationSample/Form1.cs
new file mode 100644
index 00000000..a0a4d6bd
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/Form1.cs
@@ -0,0 +1,71 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using libsecondlife;
+using libsecondlife.Packets;
+using System.Collections;
+
+namespace AnimationSample
+{
+ public partial class Form1 : Form
+ {
+ SecondLife client;
+ public Form1()
+ {
+ InitializeComponent();
+ //Create the SecondLife client object
+ client = new SecondLife();
+
+ }
+
+ private void btnPlay_Click(object sender, EventArgs e)
+ {
+ //Build an animation packet
+ AgentAnimationPacket packet = new AgentAnimationPacket();
+
+ //create an AgentData block
+ AgentAnimationPacket.AgentDataBlock agentdata = new AgentAnimationPacket.AgentDataBlock();
+ //Fill in its values
+ agentdata.AgentID = client.Avatar.ID;
+ agentdata.SessionID = client.Network.SessionID;
+ //Add it in the packet
+ packet.AgentData = agentdata;
+
+ //Create an AnimationList block
+ AgentAnimationPacket.AnimationListBlock anims = new AgentAnimationPacket.AnimationListBlock();
+ //Set the UUID of the animation to avatar_dance1.bvh, a standard animation
+ anims.AnimID = new LLUUID("b68a3d7c-de9e-fc87-eec8-543d787e5b0d");
+ //Start the animation
+ anims.StartAnim = true;
+ //Add it to the packet. SInce it's a Variable number block, we have to construct an array.
+ packet.AnimationList = new AgentAnimationPacket.AnimationListBlock[] { anims };
+
+ //Send the packet
+ client.Network.SendPacket(packet);
+ }
+
+ private void btnLogin_Click(object sender, EventArgs e)
+ {
+ //Login information
+ Hashtable loginParams = NetworkManager.DefaultLoginValues(txtFirst.Text, txtLast.Text, txtPassword.Text, "00:00:00:00:00:00",
+ "last", 1, 12, 12, 12, "Win", "0", "animationsample", "jessemalthus@gmail.com");
+ Hashtable loginReply = new Hashtable();
+
+ // Login
+ if (!client.Network.Login(loginParams))
+ {
+ // Login failed
+ MessageBox.Show("We're sorry, but login failed. Error: \n " + client.Network.LoginError);
+
+ }
+ else
+ {
+ MessageBox.Show("Login succeded. You're at " + client.Avatar.Position + " on " + client.Network.CurrentSim.Region.Name);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/libsecondlife-cs/examples/AnimationSample/Form1.resx b/libsecondlife-cs/examples/AnimationSample/Form1.resx
new file mode 100644
index 00000000..ff31a6db
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/libsecondlife-cs/examples/AnimationSample/Program.cs b/libsecondlife-cs/examples/AnimationSample/Program.cs
new file mode 100644
index 00000000..3b2462fc
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/Program.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+
+namespace AnimationSample
+{
+ static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new Form1());
+ }
+ }
+}
\ No newline at end of file
diff --git a/libsecondlife-cs/examples/AnimationSample/Properties/AssemblyInfo.cs b/libsecondlife-cs/examples/AnimationSample/Properties/AssemblyInfo.cs
new file mode 100644
index 00000000..d2215c14
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/Properties/AssemblyInfo.cs
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("AnimationSample")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Thearis Systems/RedWire Virtual")]
+[assembly: AssemblyProduct("AnimationSample")]
+[assembly: AssemblyCopyright("Copyright © Thearis Systems/RedWire Virtual 2006")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("e7a7971a-3841-436b-bfdc-d4c14ffa1fc6")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/libsecondlife-cs/examples/AnimationSample/Properties/Resources.Designer.cs b/libsecondlife-cs/examples/AnimationSample/Properties/Resources.Designer.cs
new file mode 100644
index 00000000..86e6c716
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.42
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace AnimationSample.Properties
+{
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AnimationSample.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/libsecondlife-cs/examples/AnimationSample/Properties/Resources.resx b/libsecondlife-cs/examples/AnimationSample/Properties/Resources.resx
new file mode 100644
index 00000000..ffecec85
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/libsecondlife-cs/examples/AnimationSample/Properties/Settings.Designer.cs b/libsecondlife-cs/examples/AnimationSample/Properties/Settings.Designer.cs
new file mode 100644
index 00000000..d7a4f5ff
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.42
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace AnimationSample.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/libsecondlife-cs/examples/AnimationSample/Properties/Settings.settings b/libsecondlife-cs/examples/AnimationSample/Properties/Settings.settings
new file mode 100644
index 00000000..abf36c5d
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/libsecondlife-cs/examples/AnimationSample/obj/AnimationSample.csproj.FileList.txt b/libsecondlife-cs/examples/AnimationSample/obj/AnimationSample.csproj.FileList.txt
new file mode 100644
index 00000000..9bce9590
--- /dev/null
+++ b/libsecondlife-cs/examples/AnimationSample/obj/AnimationSample.csproj.FileList.txt
@@ -0,0 +1,10 @@
+obj\Debug\ResolveAssemblyReference.cache
+obj\Debug\AnimationSample.Form1.resources
+obj\Debug\AnimationSample.Properties.Resources.resources
+obj\Debug\AnimationSample.csproj.GenerateResource.Cache
+bin\Debug\AnimationSample.exe
+bin\Debug\AnimationSample.pdb
+bin\Debug\libsecondlife.dll
+bin\Debug\libsecondlife.pdb
+obj\Debug\AnimationSample.exe
+obj\Debug\AnimationSample.pdb
diff --git a/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.Form1.resources b/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.Form1.resources
new file mode 100644
index 00000000..06c24d06
Binary files /dev/null and b/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.Form1.resources differ
diff --git a/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.Properties.Resources.resources b/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.Properties.Resources.resources
new file mode 100644
index 00000000..06c24d06
Binary files /dev/null and b/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.Properties.Resources.resources differ
diff --git a/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.csproj.GenerateResource.Cache b/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.csproj.GenerateResource.Cache
new file mode 100644
index 00000000..86d8681c
Binary files /dev/null and b/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.csproj.GenerateResource.Cache differ
diff --git a/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.pdb b/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.pdb
new file mode 100644
index 00000000..c845b8e2
Binary files /dev/null and b/libsecondlife-cs/examples/AnimationSample/obj/Debug/AnimationSample.pdb differ