Lua script file management method by using package system
A technology of script files and management methods, applied in the field of lua script file management, can solve the problems such as limitations that cannot be used directly, no association relationship, unfavorable program logic relationship, etc., to ensure the efficiency of memory usage and execution, and maintain compatibility. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0034] The technical solution of the present invention utilizes a package mechanism to manage each lua script file, and each different lua script file corresponds to a package, wherein the package is a container for object names in a program, and the object is a data structure in the program or the entity of the function. Each package is identified by a number (ID). In a preferred embodiment, the package ID is an integer greater than or equal to 0, that is, the number starts to increase from 1.
[0035] Each package has its own independent name space, that is, the mapping table of object names and objects. The present invention also includes a unified filename-to-package package table, which is a key-value type mapping table for mapping from script filenames to corresponding packages, and is used to retrieve packages in the present invention .
[0036] In the present invention, the packages are configured to be independent of each other, but a one-way link can be established...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 