netpoet coop and 64kode
This commit is contained in:
25
64kode/src/Core/If.h
Normal file
25
64kode/src/Core/If.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
namespace kode64
|
||||
{
|
||||
|
||||
BEGIN_NODE(Core, If)
|
||||
|
||||
BEGIN_EXEC
|
||||
if (Read<bool>(BoolExpr))
|
||||
{
|
||||
Run(True);
|
||||
}
|
||||
else
|
||||
{
|
||||
Run(False);
|
||||
};
|
||||
END_EXEC
|
||||
|
||||
PIN_EXEC(True);
|
||||
PIN_EXEC(False);
|
||||
PIN_INPUT(BoolExpr, false);
|
||||
|
||||
END_NODE
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user