Skip to content

Indaxia/wlpm-wc3-demo-hello-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"))