- 1、本文档共14页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
脚本语法参考(Scripting syntax reference)
脚本语法参考(Scripting syntax reference)
Scripting syntax reference
Script file description
The script file is the execution script code corresponding to the material behavior that contains multiple functions.
For scripting functions, you can have multiple parameters. At run time, the values of these parameters may come from the operation information in the network protocol, or from other function calls in the same script file.
Behavior or interaction processing parameter of the function definition must be unified, complete is the number of parameters that must be defined with the number of behavior or interaction parameters of the same type that is unified definition of parameters must be with the behavior or interaction parameters corresponding to the corresponding parameters, you can customize the name.
Line comments are allowed in script files, in the form of:
/ /... Comment text...
Note: the script virtual machine is case sensitive.
Two, function structure
DimFun function definition...
BeginFun
Function body...
EndFun
Three, function definition
1, DimFun, followed by function definition, format as:
The DimmFun function returns the type function name (parameter 1, type parameter 1, name 2, type parameter 2, name...)
2, description:
Function returns type:
Int returns integer
String returns string type
Void has no return type (used only for function types, indicating no return value)
Function parameter name list of comma separated variable name according to the C language specification, note: $_ variable name system variables, see list of definitions.
The function parameter type is:
Int integer (value passing)
String string type (value passing)
Int_array integer array (address passing)
String_array string array (address passing)
3. Function definition example:
DimFun, int, say (int, nWho, string, sMsg)
BeginFun
....
EndFun
Be careful:
Each substance must define a script starting function, ScenarioMain, for the script to run
Each material must define a regular activity s
您可能关注的文档
- 各种鱼的做法(A variety of fish practices).doc
- 各类会计科目(Various accounting subjects).doc
- 各种进制的转换(计算机基础呀)(Various decimal conversions (Computer Fundamentals)).doc
- 各种进制的转换(计算机基础呀.)(Various decimal conversions (Computer Fundamentals)).doc
- 各类地板质量鉴别方法(Different floor quality identification methods).doc
- 古绵纯如何用巧劲成就大品牌(How old Mianchun Jin Qiao brand achievement).doc
- 各行业人才短缺急煞用人企业(Shortage of talents in all trades and enterprises).doc
- 各项指标(Each index).doc
- 各行业工资参考表(Payroll sheet).doc
- 各项工程施工时应注意事项(Matters needing attention in construction of each project).doc
文档评论(0)