脚本语法参考(Scripting syntax reference).doc

脚本语法参考(Scripting syntax reference).doc

  1. 1、本文档共14页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档