美文网首页
puert 插件继承 以及注意事项

puert 插件继承 以及注意事项

作者: 吉凶以情迁 | 来源:发表于2023-06-30 20:05 被阅读0次

非继承类 需要手动编译,可以通过vscode执行,而继承类自动编译,
tsc -p XXXs\tsconfig.json --watch

vscode task开启自动编译

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "typescript",
            "tsconfig": "tsconfig.json",
            "option": "watch",
            "problemMatcher": [
                "$tsc-watch"
            ],
            "group": "build",
            "label": "tsc: 监视 - tsconfig.json"
        }
    ]
}
image.png

写了个自动部署向导把代码放到 plugins\Puerts里

@echo off

REM Ensure that enable.bat file is pulled to Plugins/Puerts directory
echo Ensure that enable.bat file is pulled to Plugins/Puerts directory

REM Execute enable_puerts_module.js to enable Puerts module
::node enable_puerts_module.js

REM Change directory to the root directory of the project
cd ../../
::tsc --init
::tsc -w
REM Initialize the root directory
echo Initializing root directory...
for %%I in ("%cd%") do set DIRNAME=%%~nxI
echo Current project name: %DIRNAME%

REM Initialize and install dependencies using npm init and npm install
call npm init
call npm install

REM Output dependency information and prompt user to manually edit package.json file
echo -------------------
echo "dependencies": {
echo     "@types/react": "^15.6.6",
echo     "@types/react-reconciler": "^0.18.0",
echo     "@types/mocha": "^7.0.1"
echo }
echo Copy the above content and edit Rootdir/package.json, then close notepad 
notepad package.json

REM Change directory to Content directory and perform initialization and installation of dependencies
cd Content
echo Initializing Content directory...
call npm init
call npm install

REM Output dependency information and prompt user to manually edit package.json file
echo ----------------------------------
echo "dependencies": {
echo     "@types/react": "^15.6.6",
echo     "@types/react-reconciler": "^0.18.0"
echo }
echo Copy the above content and edit package.json, then close notepad again
notepad package.json

REM Change directory to Source/Current_Project_Name directory, output prompt message, and prompt user to manually edit Build.cs file
cd ../Source/%DIRNAME%
echo --Editing %cd%/%DIRNAME%.Build.cs--------
echo Copy the content and paste it in Build.cs:
echo PrivateDependencyModuleNames.AddRange(new string[]
echo {
echo     "JsEnv", "Puerts"
echo });
notepad %DIRNAME%.Build.cs
echo -------END---------------------

REM Keep the command prompt open for user to perform further actions
@echo on
cmd

调试则通过启动虚拟机运行,虚拟机需要 设置游戏实例cpp类

相关文章

  • MyBatisPlus 3.x 插件

    相关资料以及注意事项: MyBatisPlus官方网站 Mybatis Generator生成插件 本文工程 本文...

  • ps磨皮插件怎么安装

    这里重点说说PS磨皮插件Portraiture的安装以及注意事项,因为很多人拿到这款插件发现始终安装不成功,不是这...

  • Kotlin中的继承

    Kotlin中的继承 如何定义继承?当然是使用open关键字啦 案例: 子类继承 注意事项:使用 : 代表继承父类...

  • ★04.关于委托构造函数

    简单示例 普通情况 继承中 注意事项 委托构造函数与继承中的继承构造函数非同一概念。

  • OC之继承与便利构造器

    1. 继承 继承注意事项 子类继承父类所有变量和方法; 继承是单向的, 子类所有成员变量和方法 没有父类的类称为根...

  • Android Gradle 插件

    Android Gradle插件继承于Java插件,具有Java插件的的特性;现在就新建1个 APP工程,演示Ap...

  • Jenkins插件

    Jenkins插件 继承RunListener类 重写onCompleted方法 run.getResult...

  • EOS插件继承机制讲解

    EOS插件继承机制讲解 1、EOS的插件接口 从插件的基类中可以看出插件有4个状态已注册、已初始化、运行、停止。其...

  • RePlugin 记录(三)Activity调用流程

    通过Replugin 记录(二)插件启动过程,我们知道插件中的Activity被gradle修改为继承Plugin...

  • 面向对象,继承

    2017年2月28日21:52:42 面向对象: 继承: 注意事项: a,子类继承父类所有非私有方法; b,子类不...

网友评论

      本文标题:puert 插件继承 以及注意事项

      本文链接:https://www.haomeiwen.com/subject/nregydtx.html