C# Class ACR_ServerMisc.ACR_ServerMisc

Inheritance: CLRScriptFramework.CLRScriptBase, ICLRScriptImplementation
ファイルを表示 Open project: ALandFarAway/ALFA-Base-Resources Class Usage Examples

Public Properties

Property Type Description
ScriptParameterTypes System.Type[]

Public Methods

Method Description
ACR_ServerMisc ( [ Intrinsics, [ Host ) : System
GetSaltedMD5 ( string S ) : string

Get a salted MD5 of a given string using a per-server-instance hash salt.

ScriptMain ( [ ScriptParameters, [ DefaultReturnCode ) : Int32

Private Methods

Method Description
ACR_ServerMisc ( [ Other ) : System
CreateAreaInstance ( uint TemplateArea ) : uint

Create a new instanced area, or return one from the free list if there was a free instance.

DictionaryClear ( string DictID ) : void

Delete entire contents of dictionary by dictionary id.

DictionaryDeleteKey ( string DictID, string Key ) : void

Delete value from dictionary by key.

DictionaryGetString ( string DictID, string Key, string &Value ) : bool

Get Value corresponding to Dictionary DictID's Key. On error return null string.

DictionaryIterateFirst ( string DictID, string &Key ) : bool

Set Dictionary Iterator to first Key-Value pair and return its Key.

DictionaryIterateNext ( string DictID, string &Key ) : bool

Advance Dictionary Iterator to next Key-Value pair and return its Key.

DictionarySetString ( string DictID, string Key, string Value ) : void

Set Dictionary DictID's Key to a String Value.

ExecuteUpdaterScript ( ) : bool

This method is called to execute the server updater script, if one existed.

GetCreatureAIServer ( ) : object

Get an instance of the ACR_CreatureBehavior.PowerShellInterop.

GetDatabase ( ) : Database

Get the associated database object, creating it on demand if required.

GetSaltString ( ) : string

Create a randomized salt string, or return the existing one if the string has already been created for this server instance.

ReleaseInstancedArea ( uint InstancedArea ) : void

Place an instanced area on the internal free list for its associated template area.

RunPowerShellScriptlet ( string Script, uint PCObjectID ) : bool

Run a PowerShell script and send the results to a player.

Method Details

ACR_ServerMisc() public method

public ACR_ServerMisc ( [ Intrinsics, [ Host ) : System
Intrinsics [
Host [
return System

GetSaltedMD5() public static method

Get a salted MD5 of a given string using a per-server-instance hash salt.
public static GetSaltedMD5 ( string S ) : string
S string Supplies the string to hash.
return string

ScriptMain() public method

public ScriptMain ( [ ScriptParameters, [ DefaultReturnCode ) : Int32
ScriptParameters [
DefaultReturnCode [
return System.Int32

Property Details

ScriptParameterTypes public_oe static_oe property

public static Type[],System ScriptParameterTypes
return System.Type[]