Skip to content

Commit

Permalink
AutoLantern - Update
Browse files Browse the repository at this point in the history
  • Loading branch information
tr33s committed Feb 14, 2017
1 parent 7f69bd9 commit 588bdf7
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 54 deletions.
35 changes: 10 additions & 25 deletions AutoLantern/AutoLantern.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{ADAB27D3-239C-4961-A8B5-6CE40315C845}</ProjectGuid>
<ProjectGuid>{D85868AE-CCEB-4814-90F4-D3022654AAFA}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>AutoLantern</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
Expand Down Expand Up @@ -83,7 +83,8 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;AUTOLANTERN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand All @@ -96,7 +97,8 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;AUTOLANTERN_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand All @@ -110,7 +112,8 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
Expand All @@ -127,7 +130,8 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
Expand All @@ -154,27 +158,8 @@
</ItemGroup>
<ItemGroup>
<ClCompile Include="AutoLantern.cpp" />
<ClCompile Include="dllmain.cpp">
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
</PrecompiledHeader>
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</CompileAsManaged>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
</PrecompiledHeader>
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
</PrecompiledHeader>
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</CompileAsManaged>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
</PrecompiledHeader>
</ClCompile>
<ClCompile Include="PluginSDK.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="stdafx.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
3 changes: 0 additions & 3 deletions AutoLantern/AutoLantern.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
<ClCompile Include="AutoLantern.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="dllmain.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="PluginSDK.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
3 changes: 2 additions & 1 deletion AutoLantern/LPPConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ enum eLeagueEvents
kEventOnWndProc,
kEventOnEnterVisible,
kEventOnExitVisible,
kEventOnUpdateChargedSpell
kEventOnUpdateChargedSpell,
kEventOnPlayAnimation
};

enum eTargetPriority
Expand Down
5 changes: 5 additions & 0 deletions AutoLantern/PluginData.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ class IUnit
virtual float CritDamageMultiplier() = 0;
virtual int GetTimeVisibleMs() = 0;
virtual bool IsWard() = 0;
virtual bool IsValidObject() = 0;
virtual const char* GetClassIdentifier() = 0;
virtual bool IsDashing() = 0;
virtual bool CreatePath(Vec3 const& EndPosition, std::vector<Vec3>& Out) = 0;
virtual bool CreatePath2D(Vec2 const& EndPosition, std::vector<Vec2>& Out) = 0;
};

#endif // PluginData_h__
Expand Down
1 change: 1 addition & 0 deletions AutoLantern/PluginSDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ IOrbwalking* GOrbwalking = 0;
ISpellData* GSpellData = 0;
IBuffData* GBuffData = 0;
IMissileData* GMissileData = 0;
INavMesh* GNavMesh = 0;

30 changes: 24 additions & 6 deletions AutoLantern/PluginSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
GTargetSelector = x->CreateTargetSelector(); \
GSpellData = x->GetSpellDataReader(); \
GBuffData = x->GetBuffDataReader(); \
GMissileData = x->GetMissileDataReader();
GMissileData = x->GetMissileDataReader(); \
GNavMesh = x->GetNavMesh();

class IFont
{
Expand Down Expand Up @@ -82,6 +83,7 @@ class IEntityList
virtual std::vector<IUnit*> GetAllInhibitors(bool Friendly, bool Enemy) = 0;
virtual IUnit* GetEnemyNexus() = 0;
virtual IUnit* GetTeamNexus() = 0;
virtual bool DoesObjectExist(IUnit* Source) = 0;
};

class IGame
Expand All @@ -96,7 +98,7 @@ class IGame
virtual void IssueOrder(IUnit* Source, eGameObjectOrder Order, Vec3 const& Position) = 0;
virtual void IssueOrder(IUnit* Source, eGameObjectOrder Order, IUnit* Target) = 0;
virtual float IntervalPerTick() = 0;
virtual void PrintChatEx(const char*, Vec3 const&) = 0;
virtual void PrintChatEx(const char* Message, Vec3 const& Color) = 0;
virtual bool WorldToMinimap(Vec3 const& World, Vec2& Minimap) = 0;
virtual IUnit* GetSelectedTarget() = 0;
virtual void ShowPing(int PingType, IUnit* Target, bool PlaySound) = 0;
Expand All @@ -114,6 +116,8 @@ class IGame
virtual void Quit() = 0;
virtual bool CanLevelUpSpell(int Slot) = 0;
virtual bool Projection(Vec3 const&, Vec3*) = 0;
virtual int TickCount() = 0;
virtual int CurrentTick() = 0;
};

class IDamage
Expand Down Expand Up @@ -188,7 +192,7 @@ class IHealthPrediction
{
public:
virtual float GetPredictedHealth(IUnit* Source, eHealthPredictionType Prediction, int TimeMs, int DelayMs) = 0;
virtual float GetKSDamage(IUnit* Target, int SpellSlot, float Delay, bool IsMissile) = 0;
virtual float GetKSDamage(IUnit* Target, int SpellSlot, float Delay, bool IncludeMissiles) = 0;
};

class ISpell
Expand Down Expand Up @@ -216,13 +220,13 @@ class ISpell2
{
public:
virtual bool CastOnTarget(IUnit* Target, int MinimumHitChance = kHitChanceHigh) = 0;
virtual bool CastOnTargetAoE(IUnit* Target, int MinimumChampions = 2, int MinimumHitChance = kHitChanceHigh) = 0;
virtual bool CastOnTargetAoE(IUnit* Target, int MinimumChampionsTohit = 2, int MinimumHitChance = kHitChanceHigh) = 0;
virtual bool LastHitMinion() = 0;
virtual bool AttackMinions(int MinimumEnemies = 3) = 0;
virtual bool AttackMinions(int MinimumEnemiesToHit = 3) = 0;
virtual bool CastOnPlayer() = 0;
virtual bool CastOnPosition(Vec3 const& Position) = 0;
virtual bool CastOnUnit(IUnit* Target) = 0;
virtual void FindBestCastPosition(bool IncludeMinions, bool IncludeHeroes, Vec3& CastPosition, int& Enemies) = 0;
virtual void FindBestCastPosition(bool IncludeMinions, bool IncludeHeroes, Vec3& CastPosition, int& EnemiesFound) = 0;
virtual IUnit* FindTarget(eDamageType DamageType) = 0;
virtual bool IsReady() = 0;
virtual float ManaCost() = 0;
Expand Down Expand Up @@ -256,6 +260,7 @@ class IOrbwalking
virtual bool CanAttack() = 0;
virtual bool CanMove(float Delay = 0.f) = 0;
virtual void ResetAA() = 0;
virtual float GetAutoAttackRange(IUnit* Target) = 0;
};

class IInventoryItem
Expand Down Expand Up @@ -334,6 +339,7 @@ class ISpellBook
virtual float GetRange(int Slot) = 0;
virtual float GetSpellCastTime(int Slot) = 0;
virtual int GetToggleState(int Slot) = 0;
virtual float GetCastTime() = 0;
};

class IBuffData
Expand Down Expand Up @@ -367,6 +373,16 @@ class IMissileData
virtual float GetSpellCastTime(void* Data) = 0;
};

class INavMesh
{
public:
virtual bool TestLineOfSight(Vec3 const& StartPosition, Vec3 const& EndPosition, Vec3& CollisionPositionOut, int& CollisionFlagsOut) = 0;
virtual int GetCollisionFlagsForPoint(Vec3 const& Position) = 0;
virtual bool IsPointWall(Vec3 const& Position) = 0;
virtual bool IsPointGrass(Vec3 const& Position) = 0;
virtual float GetHeightForPoint(Vec2 const& Position) = 0;
};

class IPluginSDK
{
public:
Expand All @@ -393,6 +409,7 @@ class IPluginSDK
virtual void RegisterPluginInterface(std::string const& Name, PVOID Interface) = 0;
virtual void UnRegisterPluginInterface(std::string const& Name) = 0;
virtual PVOID FindPluginInterface(std::string const& Name) = 0;
virtual INavMesh* GetNavMesh() = 0;
};

extern IPluginSDK* GPluginSDK;
Expand All @@ -408,6 +425,7 @@ extern IOrbwalking* GOrbwalking;
extern ISpellData* GSpellData;
extern IBuffData* GBuffData;
extern IMissileData* GMissileData;
extern INavMesh* GNavMesh;

#endif // PluginSDK_h__

Expand Down
19 changes: 0 additions & 19 deletions AutoLantern/dllmain.cpp

This file was deleted.

0 comments on commit 588bdf7

Please sign in to comment.