Ejemplo n.º 1
0
    protected override void Execute(List <CommandEntity> entities)
    {
        foreach (var e in entities)
        {
            var command = e.enterRoomCommand;

            var flatmate = coreContext.GetEntityWithFlatmateId(command.flatmateId);
            flatmate.ReplaceCurrentRoom(command.roomId);

            e.isDestroyed = true;
        }
    }
    protected override void Execute(List <CommandEntity> entities)
    {
        foreach (var e in entities)
        {
            var command = e.stopActionCommand;

            var flatmate = coreContext.GetEntityWithFlatmateId(command.flatmateId);
            flatmate.RemoveActiveAction();
            flatmate.RemoveActionDuration();

            e.isDestroyed = true;
        }
    }