예제 #1
0
def execute_as(ctx: Context, target: Selector):
    for e in target.apply(ctx):
        c = ctx.copy()
        c.target = e
        c.redirect(execute)
예제 #2
0
def kill(ctx: Context, target: Selector):
    for dead in target.apply(ctx):
        del ctx.world.entities[dead.uuid]