Skip to content

Indaxia/wlpm-wc3-demo-hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Warcraft 3 Demo Module "demo-hello" for WLPM

Installation

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

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

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

Usage

In a module

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

In custom script

local greeting = importWM "demo-hello"
local anotherGreeting = importWM("welcome", "demo-hello")

print (greeting)
print (anotherGreeting)