Permalink
Browse files

Clarify license. Add actual code.

Signed-off-by: Stefan Schake <caytchen@gmail.com>
  • Loading branch information...
1 parent a82ca7f commit 0ce9230b1cca537937503e3e039e0adfee081336 @stschake committed Jan 8, 2011
Showing with 6,066 additions and 1 deletion.
  1. BIN Externals/WhiteMagic.dll
  2. BIN Externals/WhiteMagic.pdb
  3. +526 −0 Externals/WhiteMagic.xml
  4. +661 −0 Externals/WhiteMagic_license.txt
  5. +25 −0 LICENSE
  6. +1 −1 README.markdown
  7. +115 −0 TeleportBook/Form1.Designer.cs
  8. +89 −0 TeleportBook/Form1.cs
  9. +120 −0 TeleportBook/Form1.resx
  10. +28 −0 TeleportBook/Program.cs
  11. +36 −0 TeleportBook/Properties/AssemblyInfo.cs
  12. +71 −0 TeleportBook/Properties/Resources.Designer.cs
  13. +117 −0 TeleportBook/Properties/Resources.resx
  14. +30 −0 TeleportBook/Properties/Settings.Designer.cs
  15. +7 −0 TeleportBook/Properties/Settings.settings
  16. +89 −0 TeleportBook/TeleportBook.csproj
  17. +59 −0 cleanCore.sln
  18. +22 −0 cleanCore/AuctionHouse/AuctionListType.cs
  19. +83 −0 cleanCore/AuctionHouse/WoWAuction.cs
  20. +129 −0 cleanCore/Constants.cs
  21. +63 −0 cleanCore/D3D/Direct3DAPI.cs
  22. +46 −0 cleanCore/D3D/Font.cs
  23. +10 −0 cleanCore/D3D/IResource.cs
  24. +65 −0 cleanCore/D3D/Pulse.cs
  25. +84 −0 cleanCore/D3D/Rendering.cs
  26. +543 −0 cleanCore/Descriptors.cs
  27. +101 −0 cleanCore/Events.cs
  28. +60 −0 cleanCore/Helper.cs
  29. +72 −0 cleanCore/Location.cs
  30. +102 −0 cleanCore/LuaInterface.cs
  31. +133 −0 cleanCore/Manager.cs
  32. +476 −0 cleanCore/Offsets.cs
  33. +36 −0 cleanCore/Properties/AssemblyInfo.cs
  34. +155 −0 cleanCore/Teleporter.cs
  35. +68 −0 cleanCore/UI/Inventory.cs
  36. +28 −0 cleanCore/UI/Merchant.cs
  37. +28 −0 cleanCore/WoWBag.cs
  38. +57 −0 cleanCore/WoWContainer.cs
  39. +47 −0 cleanCore/WoWCorpse.cs
  40. +47 −0 cleanCore/WoWDynamicObject.cs
  41. +71 −0 cleanCore/WoWGameObject.cs
  42. +89 −0 cleanCore/WoWItem.cs
  43. +85 −0 cleanCore/WoWLocalPlayer.cs
  44. +193 −0 cleanCore/WoWObject.cs
  45. +50 −0 cleanCore/WoWParty.cs
  46. +146 −0 cleanCore/WoWPlayer.cs
  47. +65 −0 cleanCore/WoWScript.cs
  48. +513 −0 cleanCore/WoWUnit.cs
  49. +96 −0 cleanCore/WoWWorld.cs
  50. +97 −0 cleanCore/cleanCore.csproj
  51. +24 −0 cleanPattern/AddModifier.cs
  52. +9 −0 cleanPattern/IModifier.cs
  53. +40 −0 cleanPattern/LeaModifier.cs
  54. +67 −0 cleanPattern/Pattern.cs
  55. +36 −0 cleanPattern/Properties/AssemblyInfo.cs
  56. +56 −0 cleanPattern/cleanPattern.csproj
View
Binary file not shown.
View
Binary file not shown.
View
Oops, something went wrong.
Oops, something went wrong.
View
25 LICENSE
@@ -0,0 +1,25 @@
+Copyright 2011 Stefan Schake. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are
+permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice, this list of
+ conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list
+ of conditions and the following disclaimer in the documentation and/or other materials
+ provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY STEFAN SCHAKE ``AS IS'' AND ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The views and conclusions contained in the software and documentation are those of the
+authors and should not be interpreted as representing official policies, either expressed
+or implied, of Stefan Schake.
View
@@ -13,4 +13,4 @@ the latter is considered safe; if you worry about the first one, deactivate even
# License
-cleanCore is licensed under the Modified BSD License.
+cleanCore is licensed under the FreeBSD license or Simplified BSD license.
Oops, something went wrong.
View
@@ -0,0 +1,89 @@
+using System;
+using System.ComponentModel;
+using System.Windows.Forms;
+using cleanCore;
+using WhiteMagic.Internals;
+
+namespace TeleportBook
+{
+ public partial class Form1 : Form
+ {
+ public BindingList<BookItem> Items = new BindingList<BookItem>();
+ private readonly Detour _ctmDetour;
+
+ public Form1()
+ {
+ InitializeComponent();
+ dataGridView1.DataSource = Items;
+ _ctmDetour = Helper.Magic.Detours.Create(WoWLocalPlayer.ClickToMoveFunction, new WoWLocalPlayer.ClickToMoveDelegate(HandleClickToMove),
+ "CTMTeleport");
+ }
+
+ private int HandleClickToMove(IntPtr thisPointer, int clickType, ref ulong interactGuid, ref Location clickLocation, float precision)
+ {
+ if (Teleporter.Destination != null)
+ return 0;
+
+ if (clickType == 4)
+ {
+ Teleporter.SetDestination(clickLocation);
+ return 0;
+ }
+
+ return (int)_ctmDetour.CallOriginal(thisPointer, clickType, interactGuid, clickLocation, precision);
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ if (Manager.LocalPlayer == null)
+ return;
+
+ var loc = Manager.LocalPlayer.Location;
+ Items.Add(new BookItem { Name = "Player", X = loc.X, Y = loc.Y, Z = loc.Z });
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ if (Manager.LocalPlayer == null || Manager.LocalPlayer.TargetGuid == 0 || Manager.LocalPlayer.Target == null)
+ return;
+
+ var loc = Manager.LocalPlayer.Target.Location;
+ Items.Add(new BookItem{Name = Manager.LocalPlayer.Target.Name, X = loc.X, Y = loc.Y, Z = loc.Z});
+ }
+
+ private void button3_Click(object sender, EventArgs e)
+ {
+ if (dataGridView1.SelectedRows.Count <= 0)
+ return;
+
+ if (Teleporter.Destination != null)
+ return;
+
+ var row = dataGridView1.SelectedRows[0];
+ if (row.DataBoundItem != null)
+ {
+ var bookitem = (BookItem) row.DataBoundItem;
+ Teleporter.SetDestination(new Location(bookitem.X, bookitem.Y, bookitem.Z));
+ }
+ }
+
+ private void checkBox1_CheckedChanged(object sender, EventArgs e)
+ {
+ if (checkBox1.Checked)
+ {
+ _ctmDetour.Apply();
+ }
+ else
+ _ctmDetour.Remove();
+ }
+ }
+
+ public class BookItem
+ {
+ public string Name { get; set; }
+ public float X { get; set; }
+ public float Y { get; set; }
+ public float Z { get; set; }
+ }
+
+}
View
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
View
@@ -0,0 +1,28 @@
+using System;
+using System.Windows.Forms;
+using cleanCore;
+using cleanCore.D3D;
+
+namespace TeleportBook
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ Offsets.Initialize();
+ Pulse.OnFrame += OnFrame;
+
+ Application.EnableVisualStyles();
+ Application.Run(new Form1());
+ }
+
+ static void OnFrame(object sender, EventArgs e)
+ {
+ Teleporter.Pulse();
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit 0ce9230

Please sign in to comment.