forked from ClassicUO/ClassicUO
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
169 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{4A3C19BD-F557-4C69-B29A-E60DBE61DBFF}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>CUO_API</RootNamespace> | ||
<AssemblyName>cuoapi</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Main.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
using System; | ||
|
||
namespace CUO_API | ||
{ | ||
public delegate void OnCastSpell(int idx); | ||
public delegate void OnClientClose(); | ||
public delegate void OnConnected(); | ||
public delegate void OnDisconnected(); | ||
public delegate void OnFocusGained(); | ||
public delegate void OnFocusLost(); | ||
public delegate short OnGetPacketLength(int id); | ||
public delegate bool OnGetPlayerPosition(out int x, out int y, out int z); | ||
public delegate void OnGetStaticImage(ushort g, ref ArtInfo art); | ||
public delegate string OnGetUOFilePath(); | ||
public delegate bool OnHotkey(int key, int mod, bool pressed); | ||
public delegate void OnInitialize(); | ||
public delegate void OnMouse(int button, int wheel); | ||
public delegate bool OnPacketSendRecv(ref byte[] data, ref int length); | ||
public delegate void OnSetTitle(string title); | ||
public delegate void OnTick(); | ||
public delegate void OnUpdatePlayerPosition(int x, int y, int z); | ||
public delegate bool RequestMove(int dir, bool run); | ||
public delegate bool OnPacketSendRecv_new(byte[] data, ref int length); | ||
public delegate bool OnPacketSendRecv_new_intptr(IntPtr data, ref int length); | ||
|
||
public struct PluginHeader | ||
{ | ||
public int ClientVersion; | ||
public IntPtr Tick; | ||
public IntPtr GetStaticImage; | ||
public IntPtr CastSpell; | ||
public IntPtr GetPlayerPosition; | ||
public IntPtr GetPacketLength; | ||
public IntPtr Send; | ||
public IntPtr Recv; | ||
public IntPtr Send_new; | ||
public IntPtr Recv_new; | ||
public IntPtr GetUOFilePath; | ||
public IntPtr OnFocusLost; | ||
public IntPtr RequestMove; | ||
public IntPtr OnFocusGained; | ||
public IntPtr OnConnected; | ||
public IntPtr OnInitialize; | ||
public IntPtr OnClientClosing; | ||
public IntPtr OnPlayerPositionChanged; | ||
public IntPtr OnMouse; | ||
public IntPtr OnHotkeyPressed; | ||
public IntPtr OnSend; | ||
public IntPtr OnRecv; | ||
public IntPtr OnSend_new; | ||
public IntPtr OnRecv_new; | ||
public IntPtr HWND; | ||
public IntPtr OnDisconnected; | ||
public IntPtr SetTitle; | ||
} | ||
public struct ArtInfo | ||
{ | ||
public long Address; | ||
public long Size; | ||
public long CompressedSize; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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("CUO_API")] | ||
[assembly: AssemblyDescription("Type Library for ClassicUO")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("CUO_API")] | ||
[assembly: AssemblyCopyright("Copyright © 2020")] | ||
[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("4a3c19bd-f557-4c69-b29a-e60dbe61dbff")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.4.0.0")] | ||
[assembly: AssemblyFileVersion("1.4.0.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters