namespace RageCoop.Client.Scripting { /// /// Inherit from this class, constructor will be called automatically, but other scripts might have yet been loaded, you should use . to initiate your script. /// public abstract class ClientScript:Core.Scripting.IScriptable { /// /// This method would be called from main thread shortly after all scripts have been loaded. /// public abstract void OnStart(); /// /// This method would be called from main thread when the client disconnected from the server, you MUST terminate all background jobs/threads in this method. /// public abstract void OnStop(); /// /// Get the resource directory this script belongs to, beware that this directory should not be used to store any client-specific information since it'll get deleted every time the resource is loaded. /// public string CurrentDirectory { get;internal set; } } }