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