This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
7 changed files
with
50 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
25 changes: 25 additions & 0 deletions
25
EvoMp/EvoMp.Module.ColShapeHandler/Server/ColShapeEvent.cs
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,25 @@ | ||
using GrandTheftMultiplayer.Server.Managers; | ||
using GrandTheftMultiplayer.Shared; | ||
|
||
namespace EvoMp.Module.ColShapeHandler.Server | ||
{ | ||
/// <summary> | ||
/// Wrapper for GT-MP OnEntityEnterColShape, OnEntityExitColShape | ||
/// </summary> | ||
public class ColShapeEvent | ||
{ | ||
/// <inheritdoc /> | ||
public delegate void Callback(ColShape shape, NetHandle entity); | ||
|
||
/// <summary> | ||
/// Gets called when the event is triggered | ||
/// </summary> | ||
public Callback Cab; | ||
|
||
/// <inheritdoc /> | ||
public ColShapeEvent(Callback cab) | ||
{ | ||
Cab = cab; | ||
} | ||
} | ||
} |
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
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
16 changes: 16 additions & 0 deletions
16
EvoMp/EvoMp.Module.EventHandler/Server/ServerEventHandle.cs
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,16 @@ | ||
using GrandTheftMultiplayer.Server.Elements; | ||
|
||
namespace EvoMp.Module.EventHandler.Server | ||
{ | ||
public class ServerEventHandle | ||
{ | ||
public delegate void Callback(Client user, string eventName, params object[] args); | ||
|
||
public Callback Cab; | ||
|
||
public ServerEventHandle(Callback cab) | ||
{ | ||
Cab = cab; | ||
} | ||
} | ||
} |