C# 클래스 ZombieAPI.ZombieAPI

The publicy available API to all plugin.
파일 보기 프로젝트 열기: jariz/jZm 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BaseProcess System.Diagnostics.Process
Version string

공개 메소드들

메소드 설명
Bootstrap ( Process Game ) : void

Initializes jZm onto a certain game process. Make sure the game is the correct process, This function doesn't check if the process is correct.

DO NOT CALL FROM A PLUGIN. This function is called from the jZm frontend and you should not call it from a plugin.

Crash ( Exception z ) : void

Invokes the OnCrash event, resulting in a fatal error. Mostly used internally.

GetActors ( ) : ZombieAPI.GameObjects.GEntity[]

Loops trough all entities, returning only the actors (zombies and other NPC's)

GetBarriers ( ) : ZombieAPI.GameObjects.GEntity[]

Returns all Zombie Barriers (the zombie entrances)

GetBus ( ) : GEntity

Gets the bus on transit.

Returns the first ET_VEHICLE it can find.

GetDVar ( string Name ) : DVar

Returns the corresponding DVar object that has this name

GetDVarValue ( string Name ) : object

Returns the corresponding DVar value that has this name

GetInstance ( ) : ZombieAPI

Get current ZombieAPI instance

GetPlayers ( ) : ZombieAPI.GameObjects.Player[]

Get all clients in the server.

One of the most important functions in jZm

GetScriptMovers ( ) : ZombieAPI.GameObjects.GEntity[]

Loops trough all entities, returning only the models (keep in mind that these are not static and can be moved)

Shutdown ( bool KillEnvironment ) : void

Unloads resources, Removes hooks and exits the environment.

Write ( string message ) : void

Write a message to the jZm console.

WriteLine ( string message ) : void

Write a line to the jZm console.

WriteLine ( string message, bool debug ) : void

A overload for diagnostic messages. Works the same as WriteLine

ZombieAPI ( ) : System

If you're trying to do this from a plugin, you're doing it wrong. Use the Init(ZombieAPI) function to get the ZombieAPI object.

비공개 메소드들

메소드 설명
FilterByType ( EntityType type ) : ZombieAPI.GameObjects.GEntity[]
PluginEvent ( Delegate Ev ) : void
TriggerOnChat ( Player player, string message ) : void
TriggerOnGameFrame ( ) : void
initPlugins ( ) : void
zFrame ( object x ) : void

메소드 상세

Bootstrap() 공개 메소드

Initializes jZm onto a certain game process. Make sure the game is the correct process, This function doesn't check if the process is correct.
DO NOT CALL FROM A PLUGIN. This function is called from the jZm frontend and you should not call it from a plugin.
public Bootstrap ( Process Game ) : void
Game System.Diagnostics.Process The game process jZm reads/writes to (must be a valid CODBOII zombies process)
리턴 void

Crash() 공개 메소드

Invokes the OnCrash event, resulting in a fatal error. Mostly used internally.
public Crash ( Exception z ) : void
z System.Exception The exception you want to show details for to the user
리턴 void

GetActors() 공개 메소드

Loops trough all entities, returning only the actors (zombies and other NPC's)
public GetActors ( ) : ZombieAPI.GameObjects.GEntity[]
리턴 ZombieAPI.GameObjects.GEntity[]

GetBarriers() 공개 메소드

Returns all Zombie Barriers (the zombie entrances)
public GetBarriers ( ) : ZombieAPI.GameObjects.GEntity[]
리턴 ZombieAPI.GameObjects.GEntity[]

GetBus() 공개 메소드

Gets the bus on transit.
Returns the first ET_VEHICLE it can find.
public GetBus ( ) : GEntity
리턴 ZombieAPI.GameObjects.GEntity

GetDVar() 공개 메소드

Returns the corresponding DVar object that has this name
public GetDVar ( string Name ) : DVar
Name string The DVar name
리턴 ZombieAPI.GameObjects.DVar

GetDVarValue() 공개 메소드

Returns the corresponding DVar value that has this name
public GetDVarValue ( string Name ) : object
Name string The DVar name
리턴 object

GetInstance() 공개 정적인 메소드

Get current ZombieAPI instance
public static GetInstance ( ) : ZombieAPI
리턴 ZombieAPI

GetPlayers() 공개 메소드

Get all clients in the server.
One of the most important functions in jZm
public GetPlayers ( ) : ZombieAPI.GameObjects.Player[]
리턴 ZombieAPI.GameObjects.Player[]

GetScriptMovers() 공개 메소드

Loops trough all entities, returning only the models (keep in mind that these are not static and can be moved)
public GetScriptMovers ( ) : ZombieAPI.GameObjects.GEntity[]
리턴 ZombieAPI.GameObjects.GEntity[]

Shutdown() 공개 메소드

Unloads resources, Removes hooks and exits the environment.
public Shutdown ( bool KillEnvironment ) : void
KillEnvironment bool Run after unloading everything
리턴 void

Write() 공개 메소드

Write a message to the jZm console.
public Write ( string message ) : void
message string The message that will be written to the console
리턴 void

WriteLine() 공개 메소드

Write a line to the jZm console.
public WriteLine ( string message ) : void
message string The message that will be written to the console
리턴 void

WriteLine() 공개 메소드

A overload for diagnostic messages. Works the same as WriteLine
public WriteLine ( string message, bool debug ) : void
message string The message that will be written to the console
debug bool Doesn't matter what you pass to this parameter, It'll be send to the debug event.
리턴 void

ZombieAPI() 공개 메소드

If you're trying to do this from a plugin, you're doing it wrong. Use the Init(ZombieAPI) function to get the ZombieAPI object.
public ZombieAPI ( ) : System
리턴 System

프로퍼티 상세

BaseProcess 공개적으로 프로퍼티

public Process,System.Diagnostics BaseProcess
리턴 System.Diagnostics.Process

Version 공개적으로 정적으로 프로퍼티

jZm version, format: x.x.x.x-BUILD
public static string Version
리턴 string