Merge pull request #3174 from ThatGamerBlue/cs2-injection

client: add ability to inject custom cs2 scripts
This commit is contained in:
ThatGamerBlue
2022-04-26 02:21:58 +01:00
committed by GitHub
5 changed files with 56 additions and 37 deletions

View File

@@ -1893,6 +1893,14 @@ public interface Client extends OAuthApi, GameEngine
*/
void setBlacklistDeadNpcs(Set<Integer> blacklist);
/**
* Adds a custom clientscript to the list of available clientscripts.
*
* @param script compiled clientscript code
* @return the id of the newly-added script
*/
int addClientScript(byte[] script);
/**
* Gets an array of tile collision data.
* <p>

View File

@@ -29,11 +29,13 @@ import java.io.IOException;
import java.io.InputStream;
import java.util.HashSet;
import java.util.Set;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class OverlayIndex
{
@Getter
private static final Set<Integer> overlays = new HashSet<>();
static