-
Notifications
You must be signed in to change notification settings - Fork 66
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
88 changed files
with
1,530 additions
and
1,783 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ on: | |
push: | ||
tags: | ||
- '*.*.*' | ||
- '*.*.*-*' | ||
- '*.*.*-*.*' | ||
jobs: | ||
fetch-nethost-linux: | ||
runs-on: ubuntu-22.04 | ||
|
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,36 @@ | ||
using System; | ||
using AltV.Net.Elements.Entities; | ||
using AltV.Net.Shared.Elements.Entities; | ||
|
||
namespace AltV.Net.Async; | ||
|
||
public class AsyncScriptRpcEvent : IScriptRPCEvent | ||
{ | ||
private readonly IPlayer _target; | ||
private readonly ushort _answerId; | ||
|
||
public AsyncScriptRpcEvent(IPlayer target, ushort answerId) | ||
{ | ||
_target = target; | ||
_answerId = answerId; | ||
} | ||
|
||
public IntPtr ScriptRPCNativePointer { get; } | ||
|
||
public bool WillAnswer() | ||
{ | ||
return true; | ||
} | ||
|
||
public bool Answer(object answer) | ||
{ | ||
_target.EmitRPCAnswer(_answerId, answer, ""); | ||
return true; | ||
} | ||
|
||
public bool AnswerWithError(string error) | ||
{ | ||
_target.EmitRPCAnswer(_answerId, null, error); | ||
return true; | ||
} | ||
} |
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
Oops, something went wrong.