Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Bridge/Bridge.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BridgeCore_Events.cs" />
<Compile Include="CwRam.cs" />
<Compile Include="Extensions\ExtensionsCore.cs" />
<Compile Include="Extensions\Logging.cs" />
<Compile Include="Extensions\SpecialMoves.cs" />
<Compile Include="Extensions\NameSubjectToChange.cs" />
<Compile Include="FormChat.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -112,7 +117,7 @@
<Compile Include="KeyboardHook.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="BridgeTCPUDP.cs" />
<Compile Include="BridgeCore.cs" />
<Compile Include="ReadWriteProcessMemory.cs" />
<EmbeddedResource Include="FormChat.resx">
<DependentUpon>FormChat.cs</DependentUpon>
Expand Down
570 changes: 570 additions & 0 deletions Bridge/BridgeCore.cs

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions Bridge/BridgeCore_Events.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
using Resources.Datagram;
using Resources.Packet;
using System;

namespace Bridge {
public delegate void EntityUpdateSentEventHandler(EntityUpdate entityUpdate);
public delegate void EntityActionSentEventHandler(EntityAction entityAction);
public delegate void HitSentHandler(Hit hit);
public delegate void PassiveProcSentEventHandler(PassiveProc passiveProc);
public delegate void ShotSentHandler(Shoot shoot);
public delegate void ChatMessageSentEventHandler(ChatMessage chatMessage);
public delegate void ChunkDiscoveredEventHandler(Chunk chunk);
public delegate void SectorDiscoveredEventHandler(Sector sector);
public delegate void VersionSentEventHandler(ProtocolVersion protocolVersion);

public delegate void EntityUpdateReceivedEventHandler(EntityUpdate entityUpdate);
public delegate void AttackReceivedEventHandler(Attack attack);
public delegate void ProjectileReceivedEventHandler(Projectile projectile);
public delegate void PassiveProcReceivedEventHandler(Proc proc);
public delegate void ChatMessageReceivedEventHandler(Chat chat);
public delegate void InGameTimeReceivedEventHandler(InGameTime inGameTime);
public delegate void InteractionReceivedEventHandler(Interaction interaction);
public delegate void StaticUpdateReceivedEventHandler(StaticUpdate staticUpdate);
public delegate void ParticleReceivedEventHandler(Particle particle);
public delegate void DynamicEntityRemovedEventHandler(RemoveDynamicEntity removeDynamicEntity);
public delegate void SpecialMoveReceiveddEventHandler(SpecialMove specialMove);

public delegate void ClientConnectedEventHandler();
public delegate void ClientDisconnectedEventHandler();

public static partial class BridgeCore {
public static event EntityUpdateSentEventHandler EntityUpdateSent;
public static event EntityActionSentEventHandler EntityActionSent;
public static event HitSentHandler HitSent;
public static event PassiveProcSentEventHandler PassiveProcSent;
public static event ShotSentHandler ShotSent;
public static event ChatMessageSentEventHandler ChatMessageSent;
public static event ChunkDiscoveredEventHandler ChunkDiscovered;
public static event SectorDiscoveredEventHandler SectorDiscovered;
public static event VersionSentEventHandler VersionSent;

public static event EntityUpdateReceivedEventHandler EntityUpdateReceived;
public static event AttackReceivedEventHandler AttackReceived;
public static event ProjectileReceivedEventHandler ProjectileReceived;
public static event PassiveProcReceivedEventHandler PassiveProcReceived;
public static event ChatMessageReceivedEventHandler ChatMessageReceived;
public static event InGameTimeReceivedEventHandler InGameTimeReceived;
public static event InteractionReceivedEventHandler InteractionReceived;
public static event StaticUpdateReceivedEventHandler StaticUpdateReceived;
public static event ParticleReceivedEventHandler ParticleReceived;
public static event DynamicEntityRemovedEventHandler DynamicEntityRemoved;
public static event SpecialMoveReceiveddEventHandler SpecialMoveReceived;

public static event ClientConnectedEventHandler ClientConnected;
public static event ClientDisconnectedEventHandler ClientDisconnected;
}
}
Loading