-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
1 parent
c99845d
commit 82495fa
Showing
11 changed files
with
168 additions
and
176 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
managed/CounterStrikeSharp.API/Core/Attributes/ListenerNameAttribute.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,14 @@ | ||
using System; | ||
|
||
namespace CounterStrikeSharp.API.Core.Attributes; | ||
|
||
[AttributeUsage(AttributeTargets.Delegate, Inherited = false)] | ||
public class ListenerNameAttribute : Attribute | ||
{ | ||
public string Name { get; init; } | ||
|
||
public ListenerNameAttribute(string name) | ||
{ | ||
Name = name; | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
...ore/Attributes/ConsoleCommandAttribute.cs → ...s/Registration/ConsoleCommandAttribute.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
3 changes: 1 addition & 2 deletions
3
...e/Attributes/GameEventHandlerAttribute.cs → ...Registration/GameEventHandlerAttribute.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
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,33 @@ | ||
|
||
using System; | ||
using CounterStrikeSharp.API.Core.Attributes; | ||
|
||
namespace CounterStrikeSharp.API.Core | ||
{ | ||
public partial class Listeners { | ||
|
||
[ListenerName("OnTick")] | ||
public delegate void OnTick(); | ||
|
||
[ListenerName("OnMapStart")] | ||
public delegate void OnMapStart(string mapName); | ||
|
||
[ListenerName("OnMapEnd")] | ||
public delegate void OnMapEnd(); | ||
|
||
[ListenerName("OnClientConnect")] | ||
public delegate void OnClientConnect(int index, string name, string ipAddress); | ||
|
||
[ListenerName("OnClientConnected")] | ||
public delegate void OnClientConnected(int index); | ||
|
||
[ListenerName("OnClientPutInServer")] | ||
public delegate void OnClientPutInServer(int index); | ||
|
||
[ListenerName("OnClientDisconnect")] | ||
public delegate void OnClientDisconnect(int index); | ||
|
||
[ListenerName("OnClientDisconnectPost")] | ||
public delegate void OnClientDisconnectPost(int index); | ||
} | ||
} |
54 changes: 0 additions & 54 deletions
54
managed/CounterStrikeSharp.API/Modules/Listeners/Listeners.cs
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
OnTick: | ||
OnMapStart: mapName:string | ||
OnMapEnd: |
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,5 @@ | ||
OnClientConnect: index:int, name:string, ipAddress:string | ||
OnClientConnected: index:int | ||
OnClientPutInServer: index:int | ||
OnClientDisconnect: index:int | ||
OnClientDisconnectPost: index:int |
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
Oops, something went wrong.