1.0.1 • Published 10 months ago

peanut-ts-types v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

peanut-ts-types

Example Script

import {Entities, IncludeScript, Vector, ppmod} from "peanut-ts-types"
// @start
// when compiled using peanuts, only code below the start annotation will be compiled
// this is useful to prevent the imports from being compiled


// @ts-ignore
// this line is ignored by typescript but will compile into squirrel just fine!
if (!("Entities" in this)) return

IncludeScript("ppmod3") // this is required when using ppmod or other external scripts

let onAuto = function() {
    ppmod.text("Hello, World!").Display(2)
}

let auto = Entities.CreateByClassname("logic_auto")
ppmod.addscript(auto, "OnNewGame", onAuto)
ppmod.addscript(auto, "OnMapTransition", onAuto)
1.0.1

10 months ago

1.0.0

10 months ago