Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 692 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 692 Bytes

Warcraft 3 Demo Module "demo-hello-user" for WLPM

Installation

wlpm install https://github.com/Indaxia/wlpm-wc3-demo-hello-user 1.0

OR add a new property in your wlpm-package.json and run wlpm update build

  "dependencies": {
    "https://github.com/Indaxia/wlpm-wc3-demo-hello-user": "1.0"
  }

Usage

In a module

WM("myModule", function(import, export, exportDefault) -- declare your main module
    local greeting = import "demo-hello-user"
    
    print (greeting("Scorpy"))
end)

In custom script

local greeting = importWM "demo-hello-user"

print (greeting("Scorpy"))