Skip to content

naichabaobao/jass

Repository files navigation

冰封王座巫妖王


Usage

Install & Init

  • Open your terminal and run
git clone https://github.com/naichabaobao/jass.git
npm install
  1. open vscode |Run and Debug|
  2. click |测试jass插件| or click F5
  3. open '.j' or '.jass' ext file in new window

Example Code

#include  "c://dir/any.j" // WE触发器    自定义脚本区
//以下为外部引用触发器的格式
//Main  为触发器名字
//MainAction  为动作函数名 对应T的动作
//MainEvent   为触发函数名 对应T的事件

library Main initializer MainEvent
  // 动作
  function MainAction takes nothing returns nothing
          
  endfunction
  // initializer MainEvent 指定此方法后vjass会自动执行一次,类似事件'地图初始化'
  function MainEvent takes nothing returns nothing
    local trigger mainTrigger = CreateTrigger()
    call TriggerRegisterTimerEventSingle(mainTrigger,0)
    call TriggerAddAction(mainTrigger, function MainAction)
  endfunction
endlibrary

Statement

  • vscode version 1.63
  • common.j version 1.33

Link

貼吧 GitHub源碼 Q群,點擊加入


请我喝奶茶

loveme

一起出份力赞助我开发吧!爱你哟

---star一下吧!---

About

vscode jass 插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published