mirror of
https://github.com/wiremod/wire.git
synced 2025-03-04 03:03:04 -05:00

Now nobody's commit should be flagged by Travis unless it actually introduces whitespace errors (which we do want to check for). This doesn't fully sort out indentation everywhere, but does fix all whitespace that Git doesn't like. You can check the whitespace across the entire codebase with: git diff-tree --check "$(git hash-object -t tree /dev/null)" HEAD
25 lines
375 B
Plaintext
25 lines
375 B
Plaintext
@name Hello World
|
|
@inputs A B
|
|
@outputs Add Sub Mul Div
|
|
@outputs GreaterThan Highest Lowest
|
|
@outputs Vector:vector
|
|
@persist D
|
|
@trigger all
|
|
|
|
Add = A + B
|
|
Sub = A - B
|
|
Mul = A * B
|
|
Div = A / B
|
|
|
|
GreaterThan = A > B
|
|
|
|
if(A > B) {
|
|
Highest = A, Lowest = B
|
|
} else {
|
|
Highest = B, Lowest = A
|
|
}
|
|
|
|
Vector = vec(A, B, 0)
|
|
Vector = Vector + vec(0, 0, A + B)
|
|
Vector = Vector:normalized()
|