PAWN-Scanner
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:A code scanner for PAWN. Finds function declarations, enumerations, constants, and more.
PAWN-Scanner
============

A code scanner for PAWN. Finds function declarations, enumerations, constants, and more.

# Example usage

```PHP
scan_dir('include', 'a_npc.inc');

	// Most things can be casted to strings
	echo $scanner->functions['SetPlayerPos'] . "\n";

	// They're split into pieces, however.
	echo $scanner->functions['SetPlayerPos']->name . "\n";
	echo $scanner->functions['SetPlayerPos']->arguments . "\n";

	// Argument lists are subclasses of VariableList.
	echo $scanner->functions['SetPlayerPos']->arguments->variables[1] . "\n";
	echo $scanner->functions['SetPlayerPos']->arguments->variables[1]->tags . "\n";
?>
```

**Output**:

```
native SetPlayerPos(playerid, Float:x, Float:y, Float:z)
SetPlayerPos
playerid, Float:x, Float:y, Float:z
Float:x
Float
```

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。