Esempio n. 1
0
 public static ExpressionSyntax MakeConstraint(ConditionalUpdateEntitiesNodeModel model)
 {
     return(model.EnableStackExecution ? LiteralExpression(SyntaxKind.TrueLiteralExpression) : LiteralExpression(SyntaxKind.FalseLiteralExpression));
 }
Esempio n. 2
0
 public static IEnumerable <SyntaxNode> BuildOnKeyPressEcs(this RoslynEcsTranslator translator,
                                                           ConditionalUpdateEntitiesNodeModel model, IPortModel portModel)
 {
     return(translator.BuildOnEntitiesEventBase(model, MakeConstraint(model)));
 }