Skip to content

untrustedmodders/plugify-dotnet-clientprefs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Source2 Client Preferences Plugin

Supported databases

  • SQLite
  • MySQL
  • PostgreSQL

Available field driver values

Dependencies

API

delegate void OnClientCookiesCachedCallback(int clientIndex);

// Subscribe to an event that is called after the client's cookie is loaded from the database.
void OnClientCookiesCached_Register(OnClientCookiesCachedCallback callback);

// Unsubscribe to an event that is called after loading the client's cookie from the database.
void OnClientCookiesCached_UnRegister(OnClientCookiesCachedCallback callback);

// Creates a new Client preference cookie.
int RegisterClientCookie(string name, string description);

// Set the value of a Client preference cookie.
void SetClientCookie(int cookieId, int clientIndex, string value);

// Retrieve the value of a Client preference cookie.
string GetClientCookie(int cookieId, int clientIndex);

// Checks if a clients cookies have been loaded from the database.
bool AreClientCookiesCached(int clientIndex);

About

Source 2 Client Preferences Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%